Skip to content

Brick85/django_forceadminlanguage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Force Admin Language Middleware

Force Django Admin to show in one selected language.

Installation

pip install django-forceadminlanguage

or

pip install git+git://github.com/Brick85/django_forceadminlanguage.git

Usage

MIDDLEWARE_CLASSES = (
    ...
    'forceadminlanguage.middleware.ForceAdminLanguageMiddleware',
    ...
)
ADMIN_LANGUAGE_CODE = 'en'

Additional Settings

ADMIN_LANGUAGE_IGNORE_PATH

If requests starts with this path admin language shouldn't be forced. Example:

# won't force English if French is manually requested.
ADMIN_LANGUAGE_IGNORE_PATH = '/fr/'

About

Force Django Admin to show in one selected language

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages