diff --git a/middleware/auth.py b/middleware/auth.py index da8ec7d366ce09e712a162e95f7fa5d1f7b590bc..f9b0ef0ae8dafc12f3baff33907450612bb11d6a 100644 --- a/middleware/auth.py +++ b/middleware/auth.py @@ -100,6 +100,11 @@ class LigoAuthMiddleware: # return None class LigoAuthBackend: + + supports_object_permissions = False + supports_anonymous_user = False + supports_inactive_user = False + def authenticate(self, ssluser): return ssluser diff --git a/settings_dev.py b/settings_dev.py index f6ced5ab88e9338e384314a7a268e08b410e9fee..4db7d67b285fdf6c0d90d025c2ae4046ba048869 100644 --- a/settings_dev.py +++ b/settings_dev.py @@ -102,13 +102,17 @@ SECRET_KEY = '$$&hl%^_4&s0k7sbdr8ll_^gkz-j8oab0tz$t^^b-%$!83d(av' # List of callables that know how to import templates from various sources. TEMPLATE_LOADERS = ( - 'django.template.loaders.filesystem.load_template_source', + #'django.template.loaders.filesystem.load_template_source', + # replaced by... + 'django.template.loaders.filesystem.Loader', 'django.template.loaders.app_directories.load_template_source', # 'django.template.loaders.eggs.load_template_source', ) TEMPLATE_CONTEXT_PROCESSORS = ( - "django.core.context_processors.auth", + #"django.core.context_processors.auth", + # replaced by... + "django.contrib.auth.context_processors.auth", "django.core.context_processors.debug", "django.core.context_processors.i18n", "django.core.context_processors.media",