Skip to main content

Language panel for django-debug-toolbar

Project description

Django-debug-toolbar-multilang

Build Status Coverage Status

Django-debug-toolbar-multilang aims to help you internationalize and localized Django apps. It adds a “Language” panel to the toolbar and shows you the current language as well as all available languages. It also lets you quickly change the language to the selected one.

Screenshots

panel preview1

panel preview1

Install

The recommended way to install djdt-multilang is by using pip:

pip install django-debug-toolbar-multilang

If you’d like to test an upcoming release, use instead:

pip install -e git+https://github.com/Matt3o12/django-debug-toolbar-multilang#egg=django-debug-toolbar-multilang

Next, you will need to add djdt-multilang to add debug_toolbar_multilang.panels.multilang.MultiLangPanel to DEBUG_TOOLBAR_PANELS and debug_toolbar_multilang to INSTALLED_APPS:

DEBUG_TOOLBAR_PANELS = [
    ...
    'debug_toolbar_multilang.panels.multilang.MultiLangPanel',
]

INSTALLED_APPS = [
    ...
    'debug_toolbar_multilang'
]

If you haven’t already set, DEBUG_TOOLBAR_PANELS make sure not to forget the defaults:

DEBUG_TOOLBAR_PANELS = [
    'debug_toolbar.panels.versions.VersionsPanel',
    'debug_toolbar.panels.timer.TimerPanel',
    'debug_toolbar.panels.settings.SettingsPanel',
    'debug_toolbar.panels.headers.HeadersPanel',
    'debug_toolbar.panels.request.RequestPanel',
    'debug_toolbar.panels.sql.SQLPanel',
    'debug_toolbar.panels.staticfiles.StaticFilesPanel',
    'debug_toolbar.panels.templates.TemplatesPanel',
    'debug_toolbar.panels.cache.CachePanel',
    'debug_toolbar.panels.signals.SignalsPanel',
    'debug_toolbar.panels.logging.LoggingPanel',
    'debug_toolbar.panels.redirects.RedirectsPanel',
    'debug_toolbar_multilang.panels.multilang.MultiLangPanel',
]

You will also need to enable the Locale middleware.

Project details


Download files

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

Source Distribution

django-debug-toolbar-multilang-1.0.1.tar.gz (6.2 kB view details)

Uploaded Source

File details

Details for the file django-debug-toolbar-multilang-1.0.1.tar.gz.

File metadata

File hashes

Hashes for django-debug-toolbar-multilang-1.0.1.tar.gz
Algorithm Hash digest
SHA256 43d78d10cee711b27d351b2d0e33800d0fd1ffbae5f700a86e63d4ee1a672c3d
MD5 1b207be3835b06c2c1859eca21c7aa4b
BLAKE2b-256 03d822a6279e2b3486cc3d8e1ddeda125e894972437c83e1d328fcab1584a2c3

See more details on using hashes here.

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