|
|
@ -16,7 +16,7 @@ Including another URLconf |
|
|
|
from django.conf import settings |
|
|
|
from django.conf.urls import include, url |
|
|
|
from django.contrib import admin |
|
|
|
from django.contrib.auth.views import login |
|
|
|
from django.contrib.auth.views import login, logout_then_login |
|
|
|
from django.contrib.staticfiles.urls import staticfiles_urlpatterns |
|
|
|
|
|
|
|
from core import urls as core_urls |
|
|
@ -24,7 +24,8 @@ from registration import urls as member_urls |
|
|
|
|
|
|
|
urlpatterns = [ |
|
|
|
url(r'^', include(core_urls)), |
|
|
|
url(r'^login/', login, {'template_name': 'login.html'}), |
|
|
|
url(r'^login/', login, {'template_name': 'login.html'}, name='login'), |
|
|
|
url(r'^logout/', logout_then_login), |
|
|
|
url(r'^member/', include(member_urls)), |
|
|
|
url(r'^admin/', admin.site.urls), |
|
|
|
] |
|
|
|