Skip to main content

Panel for Django-debug-toolbar that checks againt a HTML validator

Project description

djt_nvu

Add a panel to django-debug-toolbar for checking your HTML against a validator.

Screenshot

Just install djt-nvu...

python3 -m pip install djt-nvu

... and add "djt_nvu.panel.W3ValidatorPanel" to your settings DEBUG_TOOLBAR_PANELS. By default, djt_nvu checks against "https://html5.validator.nu/" but you can change it by adding a setting DJT_NVU_URL.

# django-debug-toolbar
DEBUG_TOOLBAR_PANELS = [
    "debug_toolbar.panels.versions.VersionsPanel",
    "debug_toolbar.panels.timer.TimerPanel",
    "djt_nvu.panel.W3ValidatorPanel",
    "debug_toolbar.panels.settings.SettingsPanel",
    "debug_toolbar.panels.profiling.ProfilingPanel",
    "debug_toolbar.panels.headers.HeadersPanel",
    "debug_toolbar.panels.request.RequestPanel",
    "debug_toolbar.panels.sql.SQLPanel",
    "debug_toolbar.panels.templates.TemplatesPanel",
    "debug_toolbar.panels.staticfiles.StaticFilesPanel",
    "debug_toolbar.panels.cache.CachePanel",
    "debug_toolbar.panels.signals.SignalsPanel",
    "debug_toolbar.panels.redirects.RedirectsPanel",
]
DJT_NVU_URL = "https://html5.validator.nu/"

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

djt_nvu-0.9.2.tar.gz (4.7 kB view hashes)

Uploaded source

Built Distribution

djt_nvu-0.9.2-py3-none-any.whl (4.8 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page