saintthor
unread,Sep 18, 2011, 12:41:48 PM9/18/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Google App Engine
i have added such code:
======
from google.appengine.dist import use_library
use_library('django', '1.2')
webapp_django_version = '1.2'
======
but the error raised in use_library()
==========
2011-09-19 00:20:02.722
<class 'google.appengine.dist._library.UnacceptableVersionError'>:
django 1.2 was requested, but 0.96.4.None is already in use
Traceback (most recent call last):
File "/base/data/home/apps/djdqbbs/d1.353358444069227713/2.py", line
8, in <module>
from List import ListPg, PostPg, UserPg, InputPg, TreePg,
WithChatPg, TestPg, MinePg, VerifyPage, OldPg, CssPg
File "/base/data/home/apps/djdqbbs/d1.353358444069227713/List.py",
line 10, in <module>
from google.appengine.ext.webapp.template import render
File "/base/python_runtime/python_lib/versions/1/google/appengine/
ext/webapp/template.py", line 66, in <module>
webapp._config_handle.django_setup()
File "/base/python_runtime/python_lib/versions/1/google/appengine/
api/lib_config.py", line 352, in __getattr__
self._update_configs()
File "/base/python_runtime/python_lib/versions/1/google/appengine/
api/lib_config.py", line 289, in _update_configs
self._registry.initialize()
File "/base/python_runtime/python_lib/versions/1/google/appengine/
api/lib_config.py", line 164, in initialize
import_func(self._modname)
File "/base/data/home/apps/djdqbbs/d1.353358444069227713/
appengine_config.py", line 41, in <module>
use_library('django', '1.2')
File "/base/python_runtime/python_lib/versions/1/google/appengine/
dist/_library.py", line 414, in use_library
InstallLibrary(name, version, explicit=True)
File "/base/python_runtime/python_lib/versions/1/google/appengine/
dist/_library.py", line 367, in InstallLibrary
CheckInstalledVersion(name, version, explicit=True)
File "/base/python_runtime/python_lib/versions/1/google/appengine/
dist/_library.py", line 300, in CheckInstalledVersion
(name, desired_version, installed_version))