authens/tests/settings.py
2020-05-13 13:27:43 +02:00

22 lines
463 B
Python

from django.urls import reverse_lazy # noqa
# Minimal settings to run a django app using authens.
SECRET_KEY = "dummy"
INSTALLED_APPS = [
"django.contrib.contenttypes",
"django.contrib.auth",
"authens",
"tests",
]
AUTHENTICATION_BACKENDS = [
"django.contrib.auth.backends.ModelBackend",
"authens.backends.ENSCASBackend",
]
DATABASES = {"default": {"ENGINE": "django.db.backends.sqlite3"}}
LOGIN_URL = reverse_lazy("authens:login")