First, you'll have to provide django's locale tree along with your
application files and add an entry in settings.LOCALE_PATHS for it. In
your settings.py:
import os
appdir = os.path.abspath(os.path.dirname(__file__))
LOCALE_PATHS = (
os.path.join(appdir, 'i18n', 'locale'),
)
The above assumes an i18n directory at the same level as your
settings.py file, containing a locale directory with django's
internationalization files.
Next, if you also want support for
django.middleware.locale.LocaleMiddleware, you need to execute the
following lines in your main.py file, just after calling
InstallAppengineHelperForDjango():
from django.conf import settings
sys.modules[settings.__module__].__file__ = os.path.join(
os.path.dirname(settings.LOCALE_PATHS[0]), '__init__.py'
)
I added this just before calling main()
On Oct 20, 12:59 pm, qubic <[EMAIL PROTECTED]> wrote:
> http://code.google.com/appengine/articles/django10_zipimport.html
> I follow the steps to make django.zip work in GAE,but i found django
> international doesn't work
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google App Engine" 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/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---