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'),