#2131: it breaks i18n on django 1.1
-----------------------------------------------+----------------------------
Reporter: ymasuda[at]ethercube.com | Owner: ccahoon
Status: new | Milestone: 1.2
Component: Core framework | Version: SVN
Resolution: | Keywords:
Stage: Fixed on a branch | Has_patch: 1
Needs_docs: 0 | Needs_tests: 0
Needs_better_patch: 0 |
-----------------------------------------------+----------------------------
Changes (by andreaskundig):
* summary: [patch] HttpResponseSendFile for serving static files
handler-specific sendfile mechanism => it
breaks i18n on django 1.1
Comment:
I'm not sure this is the right place to signal a bug, but
HttpResponseSendFile breaks internationalization.
I have a page where the user can change his language as described in the
documentation:
http://docs.djangoproject.com/en/dev/topics/i18n/#the-set-language-
redirect-view
On my page there is a link to a view that sends a pdf with
HttpResponseSendFile. If I click on this link I receive the pdf, but
afterwards I no longer can change the language. If I was on an english
page and then submit a language change to french, the /i18n/setlang/ view
recognizes the correct language code 'fr' and puts it into the session,
but once the request arrives at my view request.LANGUAGE_CODE is 'en'.
It works again after I restart Django.
(I am using Django 1.1 with python 2.5.4 on windows)
--
Ticket URL: <http://code.djangoproject.com/ticket/2131#comment:63>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---