debug_toolbar_force package

Subpackages

Submodules

debug_toolbar_force.apps module

class debug_toolbar_force.apps.Config(app_name, app_module)[source]

Bases: django.apps.config.AppConfig

Config.

label = 'debug_toolbar_force'
name = 'debug_toolbar_force'

debug_toolbar_force.conf module

debug_toolbar_force.conf.get_setting(setting, override=None)[source]

Get setting.

Get a setting from debug_toolbar_force conf module, falling back to the default.

If override is not None, it will be used instead of the setting.

Parameters:
  • setting – String with setting name
  • override – Value to use when no setting is available. Defaults to None.
Returns:

Setting value.

debug_toolbar_force.defaults module

debug_toolbar_force.middleware module

class debug_toolbar_force.middleware.ForceDebugToolbarMiddleware[source]

Bases: object

The django-debug-toolbar for views that do not return HTML.

process_request(request)[source]

Process request.

If GET_PARAM_NAME_NON_AJAX is present in request.GET, set request.is_ajax to False.

process_response(request, response)[source]

Process response.

If GET_PARAM_NAME_FORCE is present in request.GET wrap response in <html><body>{{ response }}</body></html>.

debug_toolbar_force.settings module

Module contents