Skip to content

Instantly share code, notes, and snippets.

@davidcp90
Forked from votaguz/local_settings.py
Created August 6, 2013 17:36
Show Gist options
  • Save davidcp90/6166671 to your computer and use it in GitHub Desktop.
Save davidcp90/6166671 to your computer and use it in GitHub Desktop.
from tutorya.settings import *
print 'Usando local_settings'
DEBUG = True
#Auth User Model Information
# AUTH_USER_MODEL = 'profiles.User'
# EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
INTERNAL_IPS = ('127.0.0.1',)
#Debug Toolbar
DEBUG_TOOLBAR_PANELS = (
'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.template.TemplateDebugPanel',
'debug_toolbar.panels.sql.SQLDebugPanel',
'debug_toolbar.panels.signals.SignalDebugPanel',
'debug_toolbar.panels.logger.LoggingPanel',
)
STATICFILES_STORAGE = 'django.contrib.staticfiles.storage.StaticFilesStorage'
TEST_RUNNER = 'djcelery.contrib.test_runner.CeleryTestSuiteRunner'
CELERY_ALWAYS_EAGER = True
BROKER_BACKEND = 'memory'
show_debug_toolbar = False
if show_debug_toolbar:
DEBUG_TOOLBAR_CONFIG = {
'INTERCEPT_REDIRECTS': False,
'HIDE_DJANGO_SQL': False,
'TAG': 'div',
'ENABLE_STACKTRACES': True,
}
INSTALLED_APPS += (
'debug_toolbar',
)
MIDDLEWARE_CLASSES += (
'debug_toolbar.middleware.DebugToolbarMiddleware',
)
TEMPLATE_CONTEXT_PROCESSORS += (
'applications.context_processors.send_debug_to_template',
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment