X-Git-Url: https://git.mdrn.pl/cas.git/blobdiff_plain/7e61a123a0b4b5f6641cb791f76cda92369dca4b..78320dfdc127b300174a88316718a058305f629a:/src/cas/settings.py?ds=inline diff --git a/src/cas/settings.py b/src/cas/settings.py index c09aa48..562111c 100644 --- a/src/cas/settings.py +++ b/src/cas/settings.py @@ -75,12 +75,20 @@ INSTALLED_APPS = ( 'django.contrib.staticfiles', 'cas_provider', - 'gravatar', - 'south', + 'django_gravatar', 'accounts', ) +MIDDLEWARE_CLASSES = ( + 'django.contrib.sessions.middleware.SessionMiddleware', + 'django.middleware.common.CommonMiddleware', + 'django.middleware.csrf.CsrfViewMiddleware', + 'django.contrib.auth.middleware.AuthenticationMiddleware', + 'django.contrib.messages.middleware.MessageMiddleware', + 'django.middleware.clickjacking.XFrameOptionsMiddleware', +) + TEMPLATE_CONTEXT_PROCESSORS = ( "django.contrib.auth.context_processors.auth", "django.core.context_processors.debug", @@ -100,9 +108,10 @@ CAS_CUSTOM_ATTRIBUTES_CALLBACK = 'cas.utils.custom_attributes_callback' SESSION_COOKIE_NAME = 'fnpcas' GRAVATAR_DEFAULT_IMAGE = 'mm' +GRAVATAR_URL_PREFIX = 'https://www.gravatar.com/' # Import localsettings file, which may override settings defined here try: - from localsettings import * + from .localsettings import * except ImportError: pass