]> git.ipfire.org Git - thirdparty/patchwork.git/commit
settings: Use explicit setup for the Debug Toolbar
authorStephen Finucane <stephen.finucane@intel.com>
Wed, 23 Mar 2016 18:24:03 +0000 (18:24 +0000)
committerStephen Finucane <stephen.finucane@intel.com>
Thu, 24 Mar 2016 17:34:58 +0000 (17:34 +0000)
commit34ccee4a2b2b332c4b0967e5fcb691f72a44478e
tree315fa049ce2bb9ea78d9733446be673db93b4c19
parentcab52992449611f74bcdff1b456af8149de29f8b
settings: Use explicit setup for the Debug Toolbar

The 'django-debug-toolbar' application provides an automatic method of
configuring the plugin. However, as noted in the documentation [1],
this can cause issues like circular imports. In this case, a
"Table 'patchwork.patchwork_state' doesn't exist" exception was being
raised when attempting to do an initial migration.

Resolve this by using the manual configuration provided in the docs.

[1] https://django-debug-toolbar.readthedocs.org/en/1.4/installation.html

Signed-off-by: Stephen Finucane <stephen.finucane@intel.com>
Closes-bug: #29
---
v2: Don't rely on 'settings.DEBUG', as this is set to False in tests
patchwork/settings/dev.py
patchwork/urls.py