content.py 1.35 KB
Newer Older
1 2 3 4
"""
These are debug machines used for content creators, so they're kind of a cross
between dev machines and AWS machines.
"""
5 6 7 8 9

# We intentionally define lots of variables that aren't used, and
# want to import all variables from base settings files
# pylint: disable=W0401, W0614

10
from .aws import *
11 12 13 14 15

DEBUG = True
TEMPLATE_DEBUG = True

EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
16 17

################################ DEBUG TOOLBAR #################################
Calen Pennington committed
18
INSTALLED_APPS += ('debug_toolbar',)
19 20 21
MIDDLEWARE_CLASSES += ('debug_toolbar.middleware.DebugToolbarMiddleware',)

DEBUG_TOOLBAR_PANELS = (
22 23 24 25 26 27 28 29
   'debug_toolbar.panels.version.VersionDebugPanel',
   'debug_toolbar.panels.timer.TimerDebugPanel',
   'debug_toolbar.panels.settings_vars.SettingsVarsDebugPanel',
   'debug_toolbar.panels.headers.HeaderDebugPanel',
   'debug_toolbar.panels.request_vars.RequestVarsDebugPanel',
   'debug_toolbar.panels.sql.SQLDebugPanel',
   'debug_toolbar.panels.signals.SignalDebugPanel',
   'debug_toolbar.panels.logger.LoggingPanel',
30 31

#  Enabling the profiler has a weird bug as of django-debug-toolbar==0.9.4 and
Calen Pennington committed
32 33
#  Django=1.3.1/1.4 where requests to views get duplicated (your method gets
#  hit twice). So you can uncomment when you need to diagnose performance
34
#  problems, but you shouldn't leave it on.
35
#  'debug_toolbar.panels.profiling.ProfilingDebugPanel',
36
)