calling use_library(), still getting warnings about default django version

41 views
Skip to first unread message

Mark Ivey

unread,
Nov 20, 2011, 10:50:58 PM11/20/11
to Google App Engine
I'm using python and webapp. My code calls use_library() but I'm still
getting these warnings 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 see http://code.google.com/appengine/docs/python/tools/libraries.html#Django"

FWIW, here's what the start of my python code looks like. As you can
see, main.py immediate imports common.py, and common.py calls
use_library before importing any other appengine code

main.py:
import os
from appengine_blog.server import common
<...snip...>

appengine_blog/server/common.py:
import datetime
import os
import sys
import urllib
sys.path.insert(0, os.path.join(os.path.dirname(__file__),
'third_party'))

from google.appengine.dist import use_library
use_library('django', '0.96')
<...snip...>


Suggestions? Is anyone else using webapp and *not* getting these
warnings in their logs?

sandeep Koduri

unread,
Nov 20, 2011, 11:14:56 PM11/20/11
to google-a...@googlegroups.com

Are h using 'python27

--
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.

Mark Ivey

unread,
Nov 22, 2011, 1:41:01 AM11/22/11
to Google App Engine
No, this is python25.

Andreas

unread,
Nov 22, 2011, 11:52:34 AM11/22/11
to google-a...@googlegroups.com
happens to me too.
it would be nice to have a generic configuration file where to put these stuff.

would it help to put this into appengine_config.py?

PK

unread,
Nov 22, 2011, 2:51:58 PM11/22/11
to google-a...@googlegroups.com
Have you guys looked at this posting, the solution described has worked very well for me on both Ubuntu and MacOS.

PK
http://www.gae123.com
Reply all
Reply to author
Forward
0 new messages