Skip to content

Commit

Permalink
Fix debug toolbar middleware in settings
Browse files Browse the repository at this point in the history
  • Loading branch information
GustavoVS committed Nov 1, 2017
1 parent 2e9f76a commit 104dba4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 0 additions & 1 deletion timtec/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,6 @@
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'debug_toolbar.middleware.DebugToolbarMiddleware'
# Uncomment the next line for simple clickjacking protection:
# 'django.middleware.clickjacking.XFrameOptionsMiddleware',
)
Expand Down
7 changes: 4 additions & 3 deletions timtec/settings_local.py.template
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# -*- coding: utf-8 -*-
-*- coding: utf-8 -*-
# https://docs.djangoproject.com/en/dev/ref/settings/

# TODO: you NEED to change this to your domain name ######
Expand All @@ -16,9 +16,9 @@ INSTALLED_APPS += (
# 'timtec_theme', # Use this to Timtec theme
)

# TODO: Clone into /themes/themes_custom your theme and change this
# TODO: Clone into /themes/themes_custom your theme and change this
# path name to the your theme
# TIMTEC_THEME = 'themes_custom/path-to-theme1/path-to-theme1'
# TIMTEC_THEME = 'themes_custom/path-to-theme1/path-to-theme1'
TIMTEC_THEME = 'timtec_theme' # Use this to Timtec theme

COMPRESS_PRECOMPILERS = (
Expand Down Expand Up @@ -70,6 +70,7 @@ if DEBUG:
INSTALLED_APPS += (
'debug_toolbar',
)
MIDDLEWARE_CLASSES += ('debug_toolbar.middleware.DebugToolbarMiddleware',)

LOGGING = {
'version': 1,
Expand Down
1 change: 1 addition & 0 deletions timtec/settings_local.py.template_dev
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ DATABASES = {
}

if DEBUG:
MIDDLEWARE_CLASSES += ('debug_toolbar.middleware.DebugToolbarMiddleware',)
INSTALLED_APPS += (
'debug_toolbar',
)

0 comments on commit 104dba4

Please sign in to comment.