2024-01-25 15:33:24 +01:00
|
|
|
SECRET_KEY = "iamabird"
|
2017-07-25 18:31:42 +02:00
|
|
|
|
|
|
|
INSTALLED_APPS = [
|
2024-01-25 15:33:24 +01:00
|
|
|
"django.contrib.admin",
|
|
|
|
"django.contrib.auth",
|
|
|
|
"django.contrib.contenttypes",
|
|
|
|
"django.contrib.messages",
|
|
|
|
"django.contrib.sessions",
|
|
|
|
"django.contrib.sites",
|
|
|
|
"django.contrib.staticfiles",
|
|
|
|
"allauth",
|
|
|
|
"allauth.account",
|
|
|
|
"allauth.socialaccount",
|
|
|
|
"allauth_cas",
|
|
|
|
"tests.example", # Dummy CAS provider app
|
2017-07-25 18:31:42 +02:00
|
|
|
]
|
|
|
|
|
|
|
|
DATABASES = {
|
2024-01-25 15:33:24 +01:00
|
|
|
"default": {
|
|
|
|
"ENGINE": "django.db.backends.sqlite3",
|
2017-07-25 18:31:42 +02:00
|
|
|
},
|
|
|
|
}
|
|
|
|
|
|
|
|
AUTHENTICATION_BACKENDS = [
|
2024-01-25 15:33:24 +01:00
|
|
|
"allauth.account.auth_backends.AuthenticationBackend",
|
2017-07-25 18:31:42 +02:00
|
|
|
]
|
|
|
|
|
|
|
|
_MIDDLEWARES = [
|
2024-01-25 15:33:24 +01:00
|
|
|
"django.middleware.common.CommonMiddleware",
|
|
|
|
"django.contrib.sessions.middleware.SessionMiddleware",
|
|
|
|
"django.middleware.csrf.CsrfViewMiddleware",
|
|
|
|
"django.contrib.auth.middleware.AuthenticationMiddleware",
|
|
|
|
"django.contrib.messages.middleware.MessageMiddleware",
|
2017-07-25 18:31:42 +02:00
|
|
|
]
|
|
|
|
|
2024-01-25 15:33:24 +01:00
|
|
|
MIDDLEWARE = _MIDDLEWARES
|
2017-07-25 18:31:42 +02:00
|
|
|
|
|
|
|
TEMPLATES = [
|
|
|
|
{
|
2024-01-25 15:33:24 +01:00
|
|
|
"BACKEND": "django.template.backends.django.DjangoTemplates",
|
|
|
|
"DIRS": [],
|
|
|
|
"APP_DIRS": True,
|
|
|
|
"OPTIONS": {
|
|
|
|
"context_processors": [
|
|
|
|
"django.template.context_processors.debug",
|
|
|
|
"django.template.context_processors.request",
|
|
|
|
"django.contrib.auth.context_processors.auth",
|
|
|
|
"django.contrib.messages.context_processors.messages",
|
2017-07-25 18:31:42 +02:00
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
]
|
|
|
|
|
2024-01-25 15:33:24 +01:00
|
|
|
ROOT_URLCONF = "tests.urls"
|