app_settings.py 516 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
# Is moderation activated for models marked with 1 as a moderation level
MODERATION_ACTIVATED = True

# File extensions recognized as being pictures
ALLOWED_PHOTOS_EXTENSION = ["jpg", "jpeg", "png", "svg"]

# Configuration of the CAS server
CAS_SERVER_URL = "https://cas.utc.fr/cas/"
CAS_APPLY_ATTRIBUTES_TO_USER = True  # We want to map the attribute returned by the cas to the user model attribute
CAS_RENAME_ATTRIBUTES = {"mail": "email", "givenName": "first_name", "sn": "last_name"}  # Mapping of the attribute