forked from django/django
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed django#14825 -- LocaleMiddleware keeps language
* LocaleMiddleware stores language into session if it is not present there.
- Loading branch information
Showing
4 changed files
with
42 additions
and
1 deletion.
There are no files selected for viewing
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
from __future__ import unicode_literals | ||
|
||
from django.conf.urls.i18n import i18n_patterns | ||
from django.http import StreamingHttpResponse | ||
from django.http import HttpResponse, StreamingHttpResponse | ||
from django.utils.translation import ugettext_lazy as _ | ||
|
||
urlpatterns = i18n_patterns('', | ||
(r'^simple/$', lambda r: HttpResponse()), | ||
(r'^streaming/$', lambda r: StreamingHttpResponse([_("Yes"), "/", _("No")])), | ||
) |