We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 60dd857 commit 23dd101Copy full SHA for 23dd101
project_name/urls.py
@@ -3,6 +3,9 @@
3
from django.conf.urls import include, url
4
from django.contrib import admin
5
from base.views import profile
6
+from django.conf import settings
7
+from django.contrib.auth.views import logout
8
+from django.views.static import serve
9
admin.autodiscover()
10
11
@@ -20,9 +23,7 @@ def bad(request):
20
23
#all-auth
21
24
url(r'^accounts/', include('allauth.urls')),
22
25
url(r'^accounts/profile', profile),
- #url(r'^accounts/logout/$', 'django.contrib.auth.views.logout', {'next_page': '/'}),
-
26
+ url(r'^accounts/logout/$', logout, {'next_page': '/'}),
27
]
28
29
if settings.DEBUG:
0 commit comments