fix template matrix for login/logout
This commit is contained in:
@@ -136,6 +136,7 @@ CRISPY_TEMPLATE_PACK = 'bootstrap3'
|
||||
LOGIN_URL = 'login'
|
||||
LOGOUT_URL = 'logout'
|
||||
LOGIN_REDIRECT_URL = 'carom_index'
|
||||
LOGOUT_REDIRECT_URL = 'carom_index'
|
||||
|
||||
STATIC_ROOT = "/srv/carom/carom-server/static/"
|
||||
|
||||
|
@@ -15,12 +15,15 @@ Including another URLconf
|
||||
"""
|
||||
from django.conf.urls import url, include
|
||||
from django.contrib import admin
|
||||
from django.contrib.auth import views as auth_views
|
||||
from django.views.generic import RedirectView
|
||||
|
||||
urlpatterns = [
|
||||
url(r'^admin/', admin.site.urls),
|
||||
url(r'^api-auth/', include('rest_framework.urls', namespace='rest_framework')),
|
||||
url(r'^billard/', include('billard.urls')),
|
||||
url(r'^login/$', auth_views.login),
|
||||
url(r'^logout/$', auth_views.logout),
|
||||
url(r'^', include('django.contrib.auth.urls')),
|
||||
url(r'^.*$', RedirectView.as_view(url='billard/', permanent=False), name='index')
|
||||
]
|
||||
|
Reference in New Issue
Block a user