diff --git a/note_kfet/settings/base.py b/note_kfet/settings/base.py index 9019b4e0..280edd8e 100644 --- a/note_kfet/settings/base.py +++ b/note_kfet/settings/base.py @@ -55,6 +55,8 @@ INSTALLED_APPS = [ # Autocomplete 'dal', 'dal_select2', + # CAS + 'cas_server', # Note apps 'activity', @@ -180,3 +182,7 @@ STATIC_URL = '/static/' ALIAS_VALIDATOR_REGEX = r'' +# CAS Settings +CAS_LOGO_URL = "/static/img/Saperlistpopette.png" +CAS_FAVICON_URL = "/static/favicon/favicon-32x32.png" + diff --git a/note_kfet/urls.py b/note_kfet/urls.py index 303e229a..c9c09b64 100644 --- a/note_kfet/urls.py +++ b/note_kfet/urls.py @@ -19,6 +19,9 @@ urlpatterns = [ path('admin/doc/', include('django.contrib.admindocs.urls')), path('admin/', admin.site.urls), + # Include CAS routers + path(r'cas/', include('cas_server.urls', namespace="cas_server")), + # Include Django REST API path('api/', include('api.urls')), ] diff --git a/requirements.txt b/requirements.txt index 21c24808..2bc32fff 100644 --- a/requirements.txt +++ b/requirements.txt @@ -4,6 +4,7 @@ defusedxml==0.6.0 Django~=2.2 django-allauth==0.39.1 django-autocomplete-light==3.5.1 +django-cas-server==1.1.0 django-crispy-forms==1.7.2 django-extensions==2.1.9 django-filter==2.2.0 diff --git a/static/img/Saperlistpopette.png b/static/img/Saperlistpopette.png new file mode 100644 index 00000000..4b351fb6 Binary files /dev/null and b/static/img/Saperlistpopette.png differ