Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-ora2
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
edx-ora2
Commits
0e35d046
Commit
0e35d046
authored
Mar 18, 2014
by
David Ormsbee
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #162 from edx/ormsbee/ajax_debug
Enable django-debug-toolbar to help with AJAX requests.
parents
aff941f1
24c645e3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
2 deletions
+20
-2
requirements/dev.txt
+2
-1
settings/dev.py
+18
-1
No files found.
requirements/dev.txt
View file @
0e35d046
...
...
@@ -2,7 +2,8 @@
# Debug tools
bpython==0.12
django-debug-toolbar==0.11.0
django-debug-panel==0.8.0
django-debug-toolbar==1.0.1
django-pdb==0.3.2
sqlparse==0.1.10
...
...
settings/dev.py
View file @
0e35d046
...
...
@@ -7,12 +7,29 @@ from .base import *
INSTALLED_APPS
+=
(
'django_pdb'
,
# Allows post-mortem debugging on exceptions
'debug_panel'
,
'debug_toolbar'
,
)
MIDDLEWARE_CLASSES
+=
(
'django_pdb.middleware.PdbMiddleware'
,
# Needed to enable shell-on-crash behavior
'debug_
toolbar.middleware.DebugToolbar
Middleware'
,
'debug_
panel.middleware.DebugPanel
Middleware'
,
)
INTERNAL_IPS
=
(
'127.0.0.1'
,)
CACHES
=
{
'default'
:
{
'BACKEND'
:
'django.core.cache.backends.locmem.LocMemCache'
,
'LOCATION'
:
'debug-panel'
,
},
# this cache backend will be used by django-debug-panel
'debug-panel'
:
{
'BACKEND'
:
'django.core.cache.backends.locmem.LocMemCache'
,
'LOCATION'
:
'debug-panel'
,
'OPTIONS'
:
{
'MAX_ENTRIES'
:
200
}
}
}
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