parent
a117ba8bea
commit
289eecb57e
1 changed files with 14 additions and 21 deletions
@ -1,25 +1,18 @@ |
||||
from .base import * |
||||
INTERNAL_IPS = ('127.0.0.1', ) |
||||
try: |
||||
from .base import * |
||||
except ImportError: |
||||
raise ImportError("Oops,can't find base settings") |
||||
|
||||
# Debug toolbar |
||||
DEBUG_TOOLBAR_PANELS = ( |
||||
'debug_toolbar.panels.versions.VersionsPanel', |
||||
'debug_toolbar.panels.timer.TimerPanel', |
||||
'debug_toolbar.panels.settings.SettingsPanel', |
||||
'debug_toolbar.panels.headers.HeadersPanel', |
||||
'debug_toolbar.panels.request.RequestPanel', |
||||
'debug_toolbar.panels.sql.SQLPanel', |
||||
'debug_toolbar.panels.staticfiles.StaticFilesPanel', |
||||
'debug_toolbar.panels.templates.TemplatesPanel', |
||||
'debug_toolbar.panels.cache.CachePanel', |
||||
'debug_toolbar.panels.signals.SignalsPanel', |
||||
'debug_toolbar.panels.logging.LoggingPanel', |
||||
'debug_toolbar.panels.redirects.RedirectsPanel', |
||||
) |
||||
|
||||
MIDDLEWARE = MIDDLEWARE + [ |
||||
'debug_toolbar.middleware.DebugToolbarMiddleware', |
||||
] |
||||
# configurations for django debug toolbar |
||||
INTERNAL_IPS = ('127.0.0.1',) |
||||
|
||||
MIDDLEWARE = [ |
||||
'debug_toolbar.middleware.DebugToolbarMiddleware' |
||||
] + MIDDLEWARE |
||||
INSTALLED_APPS = INSTALLED_APPS + ['debug_toolbar'] |
||||
DEBUG_TOOLBAR_CONFIG = { |
||||
'RESULTS_CACHE_SIZE': 50 |
||||
} |
||||
DEFAULT_FROM_EMAIL = 'order@russian-programms.ru' |
||||
CELERY_ALWAYS_EAGER = True |
||||
|
||||
|
||||
Loading…
Reference in new issue