Django-nonrel on Google App Engine, getting error i'm using Django 0.96
I'm using Django Appengine http://www.allbuttonspressed.com/projects/djangoappengine so I can use Django 1.3 and everything seems to work fine.
However, when opening pages my PyDev console (OS 10.6, Aptana Studio 2.0, Python 2.5) puts out this message:
WARNING:root: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
The link the error provides seems to only talk about using:
from google.appengine.dist import use_library
use_library('django', '1.1')
If I was using GAE's django开发者_开发百科 I understand I'd need to do this. However, I'm using django-nonrel, why would it warn me I'm using 0.96 when I should be using 1.3?
Could you please check your project's PYTHONPATH setting (right-click the project, click on Preferences, and select PYTHONPATH)? Make sure that you do NOT have the GAE SDK's django folder in your PYTHONPATH. If it's listed there just remove it. This should get rid of the warning.
I haven't played with Django-nonrel yet. If not for that, and your using Django 1.3, then adding
webapp_django_version = '1.2'
to appengine_config.py
(and removing uses of use_library
) would solve your problem. Since you're already set up to run the experiment, try
webapp_django_version = '1.3'
and report back.
精彩评论