Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
course-discovery
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
course-discovery
Commits
bf1a3bc7
Commit
bf1a3bc7
authored
Sep 12, 2016
by
Clinton Blackburn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed settings for Django Debug Toolbar
ECOM-5559 and ECOM-5440
parent
2c235dbc
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
34 additions
and
38 deletions
+34
-38
course_discovery/settings/base.py
+31
-0
course_discovery/settings/devstack.py
+2
-2
course_discovery/settings/local.py
+1
-2
course_discovery/settings/shared/__init__.py
+0
-0
course_discovery/settings/shared/debug_toolbar.py
+0
-34
No files found.
course_discovery/settings/base.py
View file @
bf1a3bc7
...
...
@@ -373,3 +373,34 @@ TAGGIT_CASE_INSENSITIVE = True
# django-solo configuration (https://github.com/lazybird/django-solo#settings)
SOLO_CACHE
=
'default'
SOLO_CACHE_TIMEOUT
=
3600
# Django Debug Toolbar settings
# http://django-debug-toolbar.readthedocs.org/en/latest/installation.html
if
os
.
environ
.
get
(
'ENABLE_DJANGO_TOOLBAR'
,
False
):
INSTALLED_APPS
+=
[
'debug_toolbar'
,
'elastic_panel'
,
]
MIDDLEWARE_CLASSES
+=
(
'debug_toolbar.middleware.DebugToolbarMiddleware'
,
)
DEBUG_TOOLBAR_PATCH_SETTINGS
=
False
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'
,
'elastic_panel.panel.ElasticDebugPanel'
]
course_discovery/settings/devstack.py
View file @
bf1a3bc7
from
course_discovery.settings.production
import
*
from
course_discovery.settings.shared.debug_toolbar
import
*
DEBUG
=
True
...
...
@@ -8,8 +7,9 @@ LOGGING['handlers']['local'] = {
'class'
:
'logging.NullHandler'
,
}
# Determine which requests should render Django Debug Toolbar
INTERNAL_IPS
=
(
'127.0.0.1'
,)
# END TOOLBAR CONFIGURATION
HAYSTACK_CONNECTIONS
=
{
...
...
course_discovery/settings/local.py
View file @
bf1a3bc7
from
course_discovery.settings.base
import
*
from
course_discovery.settings.shared.debug_toolbar
import
*
DEBUG
=
True
...
...
@@ -31,8 +30,8 @@ DATABASES = {
EMAIL_BACKEND
=
'django.core.mail.backends.console.EmailBackend'
# END EMAIL CONFIGURATION
# Determine which requests should render Django Debug Toolbar
INTERNAL_IPS
=
(
'127.0.0.1'
,)
# END TOOLBAR CONFIGURATION
# AUTHENTICATION
# Set these to the correct values for your OAuth2/OpenID Connect provider (e.g., devstack)
...
...
course_discovery/settings/shared/__init__.py
deleted
100644 → 0
View file @
2c235dbc
course_discovery/settings/shared/debug_toolbar.py
deleted
100644 → 0
View file @
2c235dbc
"""
Django Debug Toolbar settings.
http://django-debug-toolbar.readthedocs.org/en/latest/installation.html
"""
from
course_discovery.settings.base
import
*
if
os
.
environ
.
get
(
'ENABLE_DJANGO_TOOLBAR'
,
False
):
INSTALLED_APPS
+=
[
'debug_toolbar'
,
'elastic_panel'
,
]
MIDDLEWARE_CLASSES
+=
(
'debug_toolbar.middleware.DebugToolbarMiddleware'
,
)
DEBUG_TOOLBAR_PATCH_SETTINGS
=
False
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'
,
'elastic_panel.panel.ElasticDebugPanel'
]
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment