Skip to content

Commit fba1428

Browse files
committed
Admin: install debug_toolbar
This application needs to be installed if we want to enable it later in the `web-extra` instance. Otherwise, it fails due the static files are not in the manifest. By installing it by default, `collectstatic` will find this application and copy these static files and add them in the manifest. Note this application will only be used if `SHOW_DEBUG_TOOLBAR=True`, which is `False` by default.
1 parent 768e894 commit fba1428

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

readthedocs/settings/base.py

+7-2
Original file line numberDiff line numberDiff line change
@@ -250,8 +250,13 @@ def INSTALLED_APPS(self): # noqa
250250
apps.append('readthedocsext.spamfighting')
251251
if self.RTD_EXT_THEME_ENABLED:
252252
apps.append('readthedocsext.theme')
253-
if self.SHOW_DEBUG_TOOLBAR:
254-
apps.append('debug_toolbar')
253+
254+
# We always have to install this application,
255+
# even if we don't show the toolbar later.
256+
# This is because `collectstatic` needs it to copy the static files.
257+
# Otherwise, it fails due
258+
# "Missing staticfiles manifest entry for 'debug_toolbar/*'"
259+
apps.append('debug_toolbar')
255260

256261
return apps
257262

0 commit comments

Comments
 (0)