Skip to content

Commit 23dd101

Browse files
committed
making urls.py great again
1 parent 60dd857 commit 23dd101

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

project_name/urls.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
from django.conf.urls import include, url
44
from django.contrib import admin
55
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
69
admin.autodiscover()
710

811

@@ -20,9 +23,7 @@ def bad(request):
2023
#all-auth
2124
url(r'^accounts/', include('allauth.urls')),
2225
url(r'^accounts/profile', profile),
23-
#url(r'^accounts/logout/$', 'django.contrib.auth.views.logout', {'next_page': '/'}),
24-
25-
26+
url(r'^accounts/logout/$', logout, {'next_page': '/'}),
2627
]
2728

2829
if settings.DEBUG:

0 commit comments

Comments
 (0)