django-debug-toolbar-autoreload
This package contains an extra panel for the excellent django-debug-toolbar.
The purpose is to automatically reload the page if a template that was used to render the current page is changed. It is for your browser what the runserver’s auto-reload feature is for your python code.
Install
Put the debug_toolbar_autoreload source folder in your PYTHONPATH.
Add 'debug_toolbar_autoreload' to your INSTALLED_APPS settings.
Add 'debug_toolbar_autoreload.AutoreloadPanel' to your DEBUG_TOOLBAR_PANELS.
This means your settings file should look something like:
INSTALLED_APPS = (
# ... other apps ...
'debug_toolbar',
'debug_toolbar_autoreload',
)
DEBUG_TOOLBAR_PANELS = (
# default panels
'debug_toolbar.panels.version.VersionDebugPanel',
'debug_toolbar.panels.timer.TimerDebugPanel',
'debug_toolbar.panels.settings_vars.SettingsVarsDebugPanel',
'debug_toolbar.panels.headers.HeaderDebugPanel',
'debug_toolbar.panels.profiling.ProfilingDebugPanel',
'debug_toolbar.panels.request_vars.RequestVarsDebugPanel',
'debug_toolbar.panels.sql.SQLDebugPanel',
'debug_toolbar.panels.template.TemplateDebugPanel',
'debug_toolbar.panels.cache.CacheDebugPanel',
'debug_toolbar.panels.signals.SignalDebugPanel',
'debug_toolbar.panels.logger.LoggingPanel',
# autoreload panel
'debug_toolbar_autoreload.AutoreloadPanel',
)
Requirements: Django 1.4 or higher is required since we need a multithreaded development server.
Contribute
Download and setup the project:
git clone https://github.com/gregmuellegger/django-debug-toolbar-autoreload.git cd django-debug-toolbar-autoreload virtualenv . source bin/activate pip install -r requirements/development.txt python manage.py syncdb python manage.py runserver
Open one of the demo pages from http://localhost:8000/ in your browser.
Hack
Send a pull request
Metadata
Release files for django-debug-toolbar-autoreload 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| django-debug-toolbar-autoreload-0.1.0.tar.gz | 8.6 kB | Details |
Release files / django-debug-toolbar-autoreload-0.1.0.tar.gz
| Download URL | django-debug-toolbar-autoreload-0.1.0.tar.gz |
|---|---|
| Size | 8.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6d84c4b69320b12cf826d933aeccffbcb986025c39be5635713358fc555f7c2f
|
|
BLAKE2b-256 checksum How to use checksums |
dac98f26f27deb0bd105af9c5c71fb963f3b5c0afc226595067d9dfa71bb9382
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |