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 hashes)

Uploaded Source

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