fix settings utilisation
This commit is contained in:
parent
c5ac3411b1
commit
de72b6b167
|
@ -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')),
|
||||
]
|
||||
|
|
Loading…
Reference in New Issue