Update local_settings.py.example

This commit is contained in:
Benjamin Dauvergne 2015-02-13 15:14:05 +01:00
parent c43721be5e
commit 8837014932
1 changed files with 12 additions and 22 deletions

View File

@ -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',)