register page ok: working on reviews.models
This commit is contained in:
parent
f227705e28
commit
76be203804
@ -133,6 +133,9 @@ LOGOUT_REDIRECT_URL = 'login'
|
|||||||
|
|
||||||
AUTH_USER_MODEL = 'authentication.User'
|
AUTH_USER_MODEL = 'authentication.User'
|
||||||
|
|
||||||
|
MEDIA_URL = 'media/'
|
||||||
|
|
||||||
|
MEDIA_ROOT = BASE_DIR.joinpath(MEDIA_URL)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -16,6 +16,8 @@ Including another URLconf
|
|||||||
"""
|
"""
|
||||||
from django.contrib import admin
|
from django.contrib import admin
|
||||||
from django.urls import path
|
from django.urls import path
|
||||||
|
from django.conf import settings
|
||||||
|
from django.conf.urls.static import static
|
||||||
from django.contrib.auth.views import LoginView, LogoutView, PasswordChangeView, PasswordChangeDoneView
|
from django.contrib.auth.views import LoginView, LogoutView, PasswordChangeView, PasswordChangeDoneView
|
||||||
import authentication.views, reviews.views
|
import authentication.views, reviews.views
|
||||||
|
|
||||||
@ -37,3 +39,8 @@ urlpatterns = [
|
|||||||
path('posts/', reviews.views.posts, name='posts'),
|
path('posts/', reviews.views.posts, name='posts'),
|
||||||
path('subscribed/', reviews.views.subscribed, name='subscribed'),
|
path('subscribed/', reviews.views.subscribed, name='subscribed'),
|
||||||
]
|
]
|
||||||
|
|
||||||
|
if settings.DEBUG:
|
||||||
|
urlpatterns += static(
|
||||||
|
settings.MEDIA_URL, document_root=settings.MEDIA_ROOT
|
||||||
|
)
|
||||||
|
@ -1,21 +1,25 @@
|
|||||||
{% extends 'base.html' %}
|
{% extends 'base.html' %}
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="row justify-content-center mt-10">
|
<div class="row justify-content-center mt-5">
|
||||||
<div class="col text-center">
|
<div class="col text-center">
|
||||||
<h2>Inscrivez-vous</h2>
|
<h2>Inscrivez-vous</h2>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="row justify-content-center">
|
<div class="row justify-content-center">
|
||||||
<div class="col-3 d-flex align-items-end">
|
<div class="col-6 justify-content-around d-flex align-items-end">
|
||||||
<a href="{% url 'login' %}" class="btn btn-primary">Retourner</a>
|
|
||||||
</div>
|
|
||||||
<div class="col-3 d-flex align-items-end">
|
|
||||||
<form method='post'>
|
<form method='post'>
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
{{ form.as_p }}
|
{{ form.as_p }}
|
||||||
|
<div class="row justify-content-end">
|
||||||
|
<div class="col-3 order-2">
|
||||||
<button type="submit" class="btn btn-primary">S'inscrire</button>
|
<button type="submit" class="btn btn-primary">S'inscrire</button>
|
||||||
</form>
|
</form>
|
||||||
|
</div>
|
||||||
|
<div class="col-3 order-1">
|
||||||
|
<a href="{% url 'login' %}" class="btn btn-primary">Retourner</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user