Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
chocapix-server
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
5
Issues
5
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Camille MASSET
chocapix-server
Commits
12ecea89
Verified
Commit
12ecea89
authored
Nov 24, 2019
by
Camille MASSET
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Attempt to enable Debug Toolbar
parent
92449a17
Pipeline
#6435
failed with stage
in 33 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
bars_django/settings/dev_local.py
bars_django/settings/dev_local.py
+2
-2
bars_django/urls.py
bars_django/urls.py
+8
-0
No files found.
bars_django/settings/dev_local.py
View file @
12ecea89
...
...
@@ -6,9 +6,9 @@ INSTALLED_APPS = INSTALLED_APPS + (
'debug_toolbar'
,
)
MIDDLEWARE_CLASSES
=
MIDDLEWARE_CLASSES
+
(
MIDDLEWARE_CLASSES
=
(
'debug_toolbar.middleware.DebugToolbarMiddleware'
,
)
)
+
MIDDLEWARE_CLASSES
DATABASES
=
{
'default'
:
{
...
...
bars_django/urls.py
View file @
12ecea89
from
django.conf
import
settings
from
django.conf.urls
import
include
,
url
from
rest_framework
import
routers
...
...
@@ -54,3 +55,10 @@ urlpatterns = [
url
(
r'^docs/'
,
include
(
'rest_framework_swagger.urls'
)),
url
(
r'^'
,
include
(
router
.
urls
)),
]
if
settings
.
DEBUG
:
import
debug_toolbar
urlpatterns
=
[
url
(
r'^__debug__/'
,
include
(
debug_toolbar
.
urls
)),
]
+
urlpatterns
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