authens/tests/settings.py

23 lines
463 B
Python
Raw Normal View History

2020-05-12 21:21:45 +02:00
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")