fix settings utilisation

This commit is contained in:
Élie Bouttier 2016-06-12 20:02:59 +02:00
parent c5ac3411b1
commit de72b6b167
1 changed files with 2 additions and 2 deletions

View File

@ -2,10 +2,10 @@ from django.conf.urls import include, url
from django.contrib.auth import views as auth_views
from .views import profile
from ponyconf.settings import LOGOUT_REDIRECT_URL
from django.conf import settings
urlpatterns = [
url(r'^profile$', profile, name='profile'),
url(r'^logout/$', auth_views.logout, {'next_page': LOGOUT_REDIRECT_URL}, name='logout'),
url(r'^logout/$', auth_views.logout, {'next_page': settings.LOGOUT_REDIRECT_URL}, name='logout'),
url(r'', include('django.contrib.auth.urls')),
]