Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Simple language select as custom template tag

Project Description

# django_languageselect

Simple language select as custom template tag.

## Requirements * “django.middleware.locale.LocaleMiddleware” in MIDDLEWARE_CLASSES * “django.core.context_processors.request” in TEMPLATE_CONTEXT_PROCESSORS * Add ‘django_languageselect’, to INSTALLED_APPS

Usage: `django {% load languageselect %} {% languageselect %} `

## Routes

The only url provided by this application is “languageselect_index”. Required GET-parameter is “language”, optional GET-parameter is “next”. Next contains the named url to redirect after the language change. This parameter is pre-filled with the current page url.

## Customization

Feel free to use your own template, just add languageselect/layer.html

## Changelog

0.1.4 Rename package to django_languageselect (backwards incompatible) to be able to import the module

0.1.3 Fix session key to store language, Django 1.9 compatibility

Release History

Release History

This version
History Node


History Node


History Node


History Node


Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
django_languageselect-0.1.4.tar.gz (3.2 kB) Copy SHA256 Checksum SHA256 Source Apr 18, 2017

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting