Skip to content

Commit

Permalink
fixed sandbox setlang does not work.
Browse files Browse the repository at this point in the history
  • Loading branch information
cage1016 committed Apr 14, 2016
1 parent 66d197a commit 5297b46
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
12 changes: 9 additions & 3 deletions generators/app/templates/sandbox/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
LANGUAGES = (
('en-gb', gettext_noop('British English')),
('zh-cn', gettext_noop('Simplified Chinese')),
('zh-tw', gettext_noop('Taiwan Chinese')),
('nl', gettext_noop('Dutch')),
('it', gettext_noop('Italian')),
('pl', gettext_noop('Polish')),
Expand Down Expand Up @@ -118,15 +119,20 @@
)

MIDDLEWARE_CLASSES = (
'django.middleware.locale.LocaleMiddleware',
'django.middleware.common.CommonMiddleware',
'debug_toolbar.middleware.DebugToolbarMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.contrib.flatpages.middleware.FlatpageFallbackMiddleware',
'debug_toolbar.middleware.DebugToolbarMiddleware',
# Allow languages to be selected
'django.middleware.locale.LocaleMiddleware',
'django.middleware.common.CommonMiddleware',
# Ensure a valid basket is added to the request instance for every request
'oscar.apps.basket.middleware.BasketMiddleware',
# Enable the ProfileMiddleware, then add ?cprofile to any
# URL path to print out profile details
#'oscar.profiling.middleware.ProfileMiddleware',
)

INTERNAL_IPS = ('127.0.0.1',)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "generator-django-oscar-app",
"version": "0.2.2",
"version": "0.2.3",
"description": "Quick build app for django-oscar",
"homepage": "https://github.com/cage1016/generator-django-oscar-app",
"author": {
Expand Down

0 comments on commit 5297b46

Please sign in to comment.