Last active
December 20, 2015 00:29
-
-
Save votaguz/6042599 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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