Warning
The automatic setup is known to interfere with the start-up sequence of some projects and to prevent them from loading or functioning properly.
The explicit setup described below is recommended for all but the most trivial projects. The automatic setup is kept for backwards-compatibility.
Note
The automatic setup imports your project’s URLconf in order to add the Debug Toolbar’s URLs. This is likely to trigger circular imports, for instance when the URLconf imports views that import models, a pattern found in almost every Django project.
If the development server crashes with a long stack trace after hitting an ImportError
, anAppRegistryNotReady
or an ImproperlyConfigured
exception, use the explicit setup described below.
When the automatic setup is used, the Debug Toolbar is not compatible with GZipMiddleware
. Please disable that middleware during development or use the explicit setup to allow the toolbar to function properly.