django-oidc-provider/oidc_provider/tests/app/settings.py

62 lines
1.2 KiB
Python
Raw Normal View History

2015-06-08 19:36:49 +00:00
import os
2015-06-08 16:01:09 +00:00
from datetime import timedelta
2015-07-14 16:27:46 +00:00
2015-06-08 19:36:49 +00:00
DEBUG = False
2015-06-08 16:01:09 +00:00
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': ':memory:',
}
}
SITE_ID = 1
MIDDLEWARE_CLASSES = [
2015-06-08 16:01:09 +00:00
'django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
]
2015-06-08 16:01:09 +00:00
2015-06-08 19:36:49 +00:00
LOGGING = {
'version': 1,
'disable_existing_loggers': False,
'handlers': {
'console': {
'class': 'logging.StreamHandler',
},
},
'loggers': {
'oidc_provider': {
2015-06-15 20:23:47 +00:00
'handlers': ['console'],
2015-06-08 19:36:49 +00:00
'level': os.getenv('DJANGO_LOG_LEVEL', 'DEBUG'),
},
},
}
INSTALLED_APPS = [
2015-06-08 16:01:09 +00:00
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.messages',
'django.contrib.admin',
'oidc_provider',
]
2015-06-08 16:01:09 +00:00
SECRET_KEY = 'this-should-be-top-secret'
2015-06-08 16:01:09 +00:00
2015-07-14 16:27:46 +00:00
ROOT_URLCONF = 'oidc_provider.tests.app.urls'
2015-06-08 16:01:09 +00:00
TEMPLATE_DIRS = [
'oidc_provider/tests/templates',
]
2015-06-08 16:01:09 +00:00
USE_TZ = True
2015-06-08 16:01:09 +00:00
# OIDC Provider settings.
2015-07-14 16:27:46 +00:00
SITE_URL = 'http://localhost:8000'
2015-08-11 18:59:57 +00:00
OIDC_USERINFO = 'oidc_provider.tests.app.utils.FakeUserInfo'