mirror of
https://gitlab.crans.org/bde/nk20
synced 2025-06-21 01:48:21 +02:00
Merge branch 'master' into 'logging'
# Conflicts: # locale/de/LC_MESSAGES/django.po # locale/fr/LC_MESSAGES/django.po
This commit is contained in:
@ -4,6 +4,10 @@
|
||||
from django.contrib import admin
|
||||
from django.urls import path, include
|
||||
from django.views.generic import RedirectView
|
||||
from django.conf.urls.static import static
|
||||
from django.conf import settings
|
||||
|
||||
from cas import views as cas_views
|
||||
|
||||
urlpatterns = [
|
||||
# Dev so redirect to something random
|
||||
@ -12,6 +16,10 @@ urlpatterns = [
|
||||
# Include project routers
|
||||
path('note/', include('note.urls')),
|
||||
|
||||
# Include CAS Client routers
|
||||
path('accounts/login/', cas_views.login, name='login'),
|
||||
path('accounts/logout/', cas_views.logout, name='logout'),
|
||||
|
||||
# Include Django Contrib and Core routers
|
||||
path('i18n/', include('django.conf.urls.i18n')),
|
||||
path('accounts/', include('member.urls')),
|
||||
@ -19,8 +27,14 @@ urlpatterns = [
|
||||
path('admin/doc/', include('django.contrib.admindocs.urls')),
|
||||
path('admin/', admin.site.urls),
|
||||
|
||||
# Include CAS Server routers
|
||||
path('cas/', include('cas_server.urls', namespace="cas_server")),
|
||||
|
||||
# Include Django REST API
|
||||
path('api/', include('api.urls')),
|
||||
|
||||
path('logs/', include('logs.urls')),
|
||||
]
|
||||
|
||||
urlpatterns += static(settings.MEDIA_URL,document_root=settings.MEDIA_ROOT)
|
||||
urlpatterns += static(settings.STATIC_URL,document_root=settings.STATIC_ROOT)
|
||||
|
Reference in New Issue
Block a user