meancoach_project/settings/local.py.example
from base import *
INSTALLED_APPS += ('debug_toolbar',)
MIDDLEWARE_CLASSES += ('debug_toolbar.middleware.DebugToolbarMiddleware', )
# The Django Debug Toolbar will only be shown to these client IPs.
INTERNAL_IPS = (
'127.0.0.1',
)
DEBUG_TOOLBAR_CONFIG = {
'INTERCEPT_REDIRECTS': False,
'SHOW_TEMPLATE_CONTEXT': True,
'HIDE_DJANGO_SQL': False,
}
SECRET_KEY = os.getenv('DJANGO_SECRET_KEY',
'a secret key')
assert SECRET_KEY != 'a secret key', "Please change your SECRET_KEY " \
"in settings/local.py!"
# Example postgres configuration:
# DATABASES = {
# 'default': {
# 'ENGINE': 'django.db.backends.postgresql_psycopg2',
# 'NAME': os.getenv('DATABASE_NAME', 'meancoach'),
# 'USER': os.getenv('DATABASE_USER', 'meancoach'),
# 'PASSWORD': os.getenv('DATABASE_PASSWORD', 'password'),
# 'HOST': os.getenv('DATABASE_HOST', '127.0.0.1'),
# 'PORT': os.getenv('DATABASE_PORT', '5432'),
# }
# }
# Example sqlite configuration, this file is .gitignored:
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': 'sqlite_database',
}
}