Created
January 25, 2013 09:25
-
-
Save bsnux/4633069 to your computer and use it in GitHub Desktop.
Django => Reading and setting current language from request
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from django.utils.translation import activate | |
lang = request.GET['language'] | |
activate(lang) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment