Skip to content

Instantly share code, notes, and snippets.

@bsnux
Created January 25, 2013 09:25
Show Gist options
  • Save bsnux/4633069 to your computer and use it in GitHub Desktop.
Save bsnux/4633069 to your computer and use it in GitHub Desktop.
Django => Reading and setting current language from request
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