1
0
mirror of https://gitlab.com/animath/si/plateforme-corres2math.git synced 2025-06-21 15:18:23 +02:00

Remove django cas server in CI dependencies

This commit is contained in:
Yohann D'ANELLO
2020-11-03 21:10:21 +01:00
parent 04dd02b88a
commit f146ae2dd2
5 changed files with 9 additions and 17 deletions

View File

@ -51,7 +51,6 @@ INSTALLED_APPS = [
'django.forms',
'bootstrap_datepicker_plus',
'cas_server',
'crispy_forms',
'django_tables2',
'haystack',
@ -68,6 +67,7 @@ INSTALLED_APPS = [
if "test" not in sys.argv: # pragma: no cover
INSTALLED_APPS += [
'cas_server',
'django_extensions',
'mailer',
]

View File

@ -13,6 +13,7 @@ Including another URLconf
1. Import the include() function: from django.urls import include, path
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
"""
from django.conf import settings
from django.contrib import admin
from django.urls import include, path
from django.views.defaults import bad_request, page_not_found, permission_denied, server_error
@ -35,11 +36,14 @@ urlpatterns = [
path('media/authorization/photo/<str:filename>/', PhotoAuthorizationView.as_view(), name='photo_authorization'),
path('cas/', include('cas_server.urls', namespace="cas_server")),
path('', include('eastereggs.urls')),
]
if 'cas_server' in settings.INSTALLED_APPS: # pragma: no cover
urlpatterns += [
path('cas/', include('cas_server.urls', namespace="cas_server")),
]
handler400 = bad_request
handler403 = permission_denied
handler404 = page_not_found