app_settings.py 529 Bytes
Newer Older
1 2 3 4 5 6 7 8
# 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/"
Florent Chehab's avatar
Florent Chehab committed
9 10 11 12 13 14 15 16
# We want to map the attribute returned by the cas to the user model attribute
CAS_APPLY_ATTRIBUTES_TO_USER = True
# Mapping of the attribute
CAS_RENAME_ATTRIBUTES = {
    "mail": "email",
    "givenName": "first_name",
    "sn": "last_name",
}