You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
1.4 KiB
43 lines
1.4 KiB
""" |
|
Development settings. |
|
|
|
- set debug mode to `True` by default |
|
- use Console backend for emails sending by default |
|
- add the django-debug-toolbar |
|
""" |
|
from .base import * # noqa |
|
|
|
# DEBUG |
|
# ------------------------------------------------------------------------------ |
|
DEBUG = env.bool('DJANGO_DEBUG', default=True) |
|
TEMPLATES[0]['OPTIONS']['debug'] = DEBUG |
|
|
|
# SECRET CONFIGURATION |
|
# ------------------------------------------------------------------------------ |
|
# Note: This key only used for development and testing. |
|
SECRET_KEY = env('DJANGO_SECRET_KEY', default='CHANGEME!!!') |
|
|
|
# EMAIL CONFIGURATION |
|
# ------------------------------------------------------------------------------ |
|
vars().update(env.email_url( |
|
'DJANGO_EMAIL_URL', default='consolemail://')) |
|
|
|
# ------------------------------------------------------------------------------ |
|
# APPLICATION AND 3RD PARTY LIBRARY SETTINGS |
|
# ------------------------------------------------------------------------------ |
|
|
|
# django-debug-toolbar |
|
# ------------------------------------------------------------------------------ |
|
MIDDLEWARE += ['debug_toolbar.middleware.DebugToolbarMiddleware', ] |
|
INSTALLED_APPS += ['debug_toolbar', ] |
|
|
|
INTERNAL_IPS = ['127.0.0.1', ] |
|
|
|
DEBUG_TOOLBAR_CONFIG = { |
|
'DISABLE_PANELS': [ |
|
'debug_toolbar.panels.redirects.RedirectsPanel', |
|
], |
|
'SHOW_TEMPLATE_CONTEXT': True, |
|
# Uncomment if jQuery is already loaded by your assets: |
|
# 'JQUERY_URL': '', |
|
}
|
|
|