Guest User

Untitled

a guest
Jan 13th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.11 KB | None | 0 0
  1. from settings import *
  2.  
  3. TEMPLATE_DEBUG = DEBUG = True
  4.  
  5. DATABASES = {
  6. 'default': {
  7. 'ENGINE': 'django.db.backends.mysql',
  8. 'NAME': 'camta',
  9. 'USER': 'root',
  10. 'PASSWORD': '',
  11. 'HOST': '',
  12. 'PORT': '',
  13. }
  14. }
  15.  
  16. EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
  17.  
  18. # Debug Toolbar
  19. MIDDLEWARE_CLASSES.insert(0, 'debug_toolbar.middleware.DebugToolbarMiddleware')
  20. TEMPLATE_CONTEXT_PROCESSORS.append('django.core.context_processors.debug')
  21. INSTALLED_APPS.append('debug_toolbar')
  22. DEBUG_TOOLBAR_PANELS = (
  23. 'debug_toolbar.panels.version.VersionDebugPanel',
  24. 'debug_toolbar.panels.timer.TimerDebugPanel',
  25. 'debug_toolbar.panels.settings_vars.SettingsVarsDebugPanel',
  26. 'debug_toolbar.panels.headers.HeaderDebugPanel',
  27. 'debug_toolbar.panels.request_vars.RequestVarsDebugPanel',
  28. 'debug_toolbar.panels.template.TemplateDebugPanel',
  29. 'debug_toolbar.panels.sql.SQLDebugPanel',
  30. 'debug_toolbar.panels.signals.SignalDebugPanel',
  31. 'debug_toolbar.panels.logger.LoggingPanel',
  32. )
  33. DEBUG_TOOLBAR_CONFIG = {
  34. 'INTERCEPT_REDIRECTS':False,
  35. }
Add Comment
Please, Sign In to add comment