46 lines
1.3 KiB
Plaintext
46 lines
1.3 KiB
Plaintext
import os.path
|
|
|
|
DEBUG = False
|
|
SECRET_KEY = 'coin'
|
|
|
|
from authentic2.settings import INSTALLED_APPS, \
|
|
MIDDLEWARE_CLASSES, AUTHENTICATION_BACKENDS
|
|
|
|
# Use Django default backend to pass Django tests
|
|
AUTHENTICATION_BACKENDS = ('django.contrib.auth.backends.ModelBackend',) # + AUTHENTICATION_BACKENDS
|
|
|
|
DATABASES = {
|
|
'default': {
|
|
'ENGINE': 'django.db.backends.sqlite3',
|
|
'NAME': os.path.join(os.path.dirname(__file__), 'authentic2.sqlite'),
|
|
},
|
|
}
|
|
|
|
if DEBUG:
|
|
INSTALLED_APPS += ('debug_toolbar',)
|
|
MIDDLEWARE_CLASSES += ('debug_toolbar.middleware.DebugToolbarMiddleware',)
|
|
|
|
|
|
LANGUAGE_CODE = 'en'
|
|
|
|
A2_IDP_SAML2_ENABLE = True
|
|
#IDP_OPENID = True
|
|
A2_VALIDATE_EMAIL_DOMAIN = False
|
|
|
|
# to pass tests from django.contrib.messages
|
|
MESSAGE_STORAGE = 'django.contrib.messages.storage.cookie.CookieStorage'
|
|
LOGIN_REDIRECT_URL = '/accounts/profile/'
|
|
LOGIN_URL = '/login/'
|
|
|
|
|
|
MIGRATION_MODULES = {
|
|
# these 'tests.migrations' modules don't actually exist, but this lets
|
|
# us skip creating migrations for the test models.
|
|
'auth': 'django.contrib.auth.tests.migrations',
|
|
'contenttypes': 'django.contrib.contenttypes.tests.migrations',
|
|
}
|
|
INSTALLED_APPS += ('django.contrib.sites',)
|
|
SITE_ID = 1
|
|
TEMPLATE_DIRS = ('tests/templates',) + TEMPLATE_DIRS
|
|
CSRF_FAILURE_VIEW = 'django.views.csrf.csrf_failure'
|