Update local_settings.py.example
This commit is contained in:
parent
c43721be5e
commit
8837014932
|
@ -1,27 +1,17 @@
|
||||||
import os.path
|
|
||||||
|
|
||||||
DEBUG = True
|
# To run you must set a secret key
|
||||||
|
SECRET_KEY = 'changeme'
|
||||||
|
|
||||||
if DEBUG:
|
# Activate SAML 2 idp
|
||||||
DEBUG_TOOLBAR = True
|
A2_IDP_SAML2_ENABLE = True
|
||||||
TEMPLATE_DEBUG = True
|
|
||||||
DEBUG_TOOLBAR_CONFIG = {
|
|
||||||
'INTERCEPT_REDIRECTS': False,
|
|
||||||
}
|
|
||||||
INTERNAL_IPS = ('127.0.0.1',)
|
|
||||||
|
|
||||||
SECRET_KEY = 'coin'
|
# Activate OpenID idp
|
||||||
|
A2_IDP_OPENID_ENABLE = True
|
||||||
|
|
||||||
from authentic2.settings import INSTALLED_APPS, \
|
# Debugging helper
|
||||||
MIDDLEWARE_CLASSES
|
try:
|
||||||
|
import debug_toolbar
|
||||||
DATABASES = {
|
except ImportError
|
||||||
'default': {
|
pass
|
||||||
'ENGINE': 'django.db.backends.sqlite3',
|
else:
|
||||||
'NAME': os.path.join(os.path.dirname(__file__), 'authentic2.sqlite'),
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|
||||||
if DEBUG:
|
|
||||||
INSTALLED_APPS += ('debug_toolbar',)
|
INSTALLED_APPS += ('debug_toolbar',)
|
||||||
MIDDLEWARE_CLASSES += ('debug_toolbar.middleware.DebugToolbarMiddleware',)
|
|
||||||
|
|
Loading…
Reference in New Issue