I found solution. It's simple:

from google.appengine.dist import use_library
use_library('django', '1.1')

On Mar 1, 9:02 am, Greg Temchenko <[email protected]> wrote:
> I'm trying to use the latest Django 1.1.1 so I placed the django
> folder to the same place as my controller.py. Something like that:
>
> /django
> /django/__init__.py (contains "VERSION = (1, 1, 1, 'final', 0)")
> /controller.py
> /app.yaml
>
>  app.yaml:
> [...]
> - url: (.*)
>   script: controller.py
>
>  controller.py
> import django
> logging.info(django.VERSION)
> [...]
>
> On dev server it works fine, it shows "controller.py:12] (1, 1, 1,
> 'final', 0)" in console.
> But when I deploy my application it seems controller.py uses built-in
> django 0.96:
> "02-28 09:40PM 26.476
> (0, 96.400000000000006, None)"
> The new features 1.1.1 does not work as well.
>
> Any suggestions?

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

Reply via email to