From 037b79c74e5ac5f1a1f7571f9e6087f1f6ed9e03 Mon Sep 17 00:00:00 2001 From: Gabriel Detraz Date: Fri, 23 Jun 2017 20:09:50 +0200 Subject: [PATCH] Broutilles stretch --- portail_captif/settings.py | 2 +- templates/base.html | 2 +- users/urls.py | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/portail_captif/settings.py b/portail_captif/settings.py index 5cbe16f..a594044 100644 --- a/portail_captif/settings.py +++ b/portail_captif/settings.py @@ -50,7 +50,7 @@ PASSWORD_HASHERS = ( ) AUTH_USER_MODEL = 'users.User' -LOGIN_URL = '/login' +LOGIN_URL = '/login/' LOGIN_REDIRECT_URL = '/' diff --git a/templates/base.html b/templates/base.html index 975b02f..15a6618 100644 --- a/templates/base.html +++ b/templates/base.html @@ -34,7 +34,7 @@ with this program; if not, write to the Free Software Foundation, Inc., {% bootstrap_css %} {% bootstrap_javascript %} - + {{ site_name }} : {% block title %}Accueil{% endblock %} diff --git a/users/urls.py b/users/urls.py index b0f2aa8..ce0fb2a 100644 --- a/users/urls.py +++ b/users/urls.py @@ -24,6 +24,7 @@ from django.conf.urls import url from . import views +app_name = 'users' urlpatterns = [ url(r'^new_user/$', views.new_user, name='new-user'), url(r'^capture/$', views.capture, name='capture'),