A description of the steps (with examples) can be found in the answers here: http://stackoverflow.com/q/4994913/98138
As Niklas mentioned things will be a lot easier with the new Python runtime but for now the easy fix is at the link I provided. Some things changed between Django .96 and 1.2 and you will need to retest all your Django code, especially your templates. The one thing I ran into (that was unexpected but easy to fix) is that Django 1.2 escapes all template variables by default so if your variable has "&" in it's value it will be auto-escaped to & and so will all the other standard HTML special characters. This can cause unexpected results, especially if you are already escaping things yourself. If you find this is an issue for a particular variable you can use the "safe" Django filter (https://docs.djangoproject.com/en/1.2/ref/ templates/builtins/#safe) to indicate to Django that it should not escape that variable's value. Good luck. - Bryce On Nov 18, 1:13 am, Max <[email protected]> wrote: > Hi, > I got this error in my logs: > > You are using the default Django version (0.96). The default Django version > will change in an App Engine release in the near future. Please call > use_library() to explicitly select a Django version. For more information > seehttp://code.google.com/appengine/docs/python/tools/libraries.html#Django > > My code is: > from django.utils import simplejson as json > > In the documents there is written to change it like this: > > import os > os.environ['DJANGO_SETTINGS_MODULE'] = 'settings' > > from google.appengine.dist import use_library > use_library('django', '1.1') > > But I'm importing just a specific library. > How do I have to set it? I can't understand. > > Thanks > > Max -- 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.
