Django's logout function remove locale settings
Posted
by jack
on Stack Overflow
See other posts from Stack Overflow
or by jack
Published on 2010-04-29T07:28:02Z
Indexed on
2010/04/29
7:37 UTC
Read the original article
Hit count: 294
When I use Django's logout function to log out an authenticated user, it switched locale to en_US, the default one.
from django.contrib.auth import logout
def someview(request):
logout(request)
return HttpResponseRedirect('/')
How to keep user's locale after logged out?
© Stack Overflow or respective owner