On rétablit authens et on passe à Django 3.2
This commit is contained in:
parent
5b5da17c26
commit
a39a73df9d
3 changed files with 11 additions and 6 deletions
|
@ -5,6 +5,8 @@ Settings communs entre setups de dev et de production.
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
|
from django.urls import reverse_lazy
|
||||||
|
|
||||||
# ---
|
# ---
|
||||||
# Secrets
|
# Secrets
|
||||||
# ---
|
# ---
|
||||||
|
@ -50,7 +52,7 @@ INSTALLED_APPS = [
|
||||||
"django.contrib.sessions",
|
"django.contrib.sessions",
|
||||||
"django.contrib.messages",
|
"django.contrib.messages",
|
||||||
"django.contrib.staticfiles",
|
"django.contrib.staticfiles",
|
||||||
"django_cas_ng",
|
"authens",
|
||||||
"fiches",
|
"fiches",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
@ -84,11 +86,13 @@ TEMPLATES = [
|
||||||
|
|
||||||
AUTHENTICATION_BACKENDS = (
|
AUTHENTICATION_BACKENDS = (
|
||||||
"django.contrib.auth.backends.ModelBackend",
|
"django.contrib.auth.backends.ModelBackend",
|
||||||
"django_cas_ng.backends.CASBackend",
|
"fiches.backends.BackendFiches",
|
||||||
)
|
)
|
||||||
|
|
||||||
WSGI_APPLICATION = "annuaire.wsgi.application"
|
WSGI_APPLICATION = "annuaire.wsgi.application"
|
||||||
|
|
||||||
|
DEFAULT_AUTO_FIELD = "django.db.models.AutoField"
|
||||||
|
|
||||||
# Internationalization
|
# Internationalization
|
||||||
# https://docs.djangoproject.com/en/dev/topics/i18n/
|
# https://docs.djangoproject.com/en/dev/topics/i18n/
|
||||||
|
|
||||||
|
@ -102,8 +106,9 @@ USE_TZ = True
|
||||||
# Settings CAS
|
# Settings CAS
|
||||||
# ---
|
# ---
|
||||||
|
|
||||||
CAS_SERVER_URL = "https://cas.eleves.ens.fr/"
|
LOGIN_URL = reverse_lazy("authens:login")
|
||||||
CAS_VERSION = "2"
|
LOGOUT_REDIRECT_URL = reverse_lazy("home")
|
||||||
|
AUTHENS_USE_OLDCAS = False
|
||||||
|
|
||||||
# ---
|
# ---
|
||||||
# LDAP et annuaire ENS
|
# LDAP et annuaire ENS
|
||||||
|
|
|
@ -43,7 +43,7 @@ MEDIA_URL = "/media/"
|
||||||
|
|
||||||
CACHES = {
|
CACHES = {
|
||||||
"default": {
|
"default": {
|
||||||
"BACKEND": "redis_cache.RedisCache",
|
"BACKEND": "django_redis.cache.RedisCache",
|
||||||
"LOCATION": "redis://:{passwd}@{host}:{port}/{db}".format(
|
"LOCATION": "redis://:{passwd}@{host}:{port}/{db}".format(
|
||||||
passwd=REDIS_PASSWD, host=REDIS_HOST, port=REDIS_PORT, db=REDIS_DB
|
passwd=REDIS_PASSWD, host=REDIS_HOST, port=REDIS_PORT, db=REDIS_DB
|
||||||
),
|
),
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
django==2.2.*
|
django==3.2.*
|
||||||
Pillow
|
Pillow
|
||||||
python-ldap
|
python-ldap
|
||||||
authens
|
authens
|
||||||
|
|
Loading…
Add table
Reference in a new issue