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 see http://code.google.com/appengine/docs/python/tools/libraries.html#Django
import os
os.environ['DJANGO_SETTINGS_MODULE'] = 'settings'
from google.appengine.dist import use_library
use_library('django', '1.1')
To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine/-/2qKVzgTPp2AJ.
--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To post to this group, send email to google-a...@googlegroups.com.
To unsubscribe from this group, send email to google-appengi...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
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 <massimiliano.pietr...@gmail.com> 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