Django version in GAE

Posted by Alex on Stack Overflow See other posts from Stack Overflow or by Alex
Published on 2011-02-05T23:22:56Z Indexed on 2011/02/05 23:25 UTC
Read the original article Hit count: 380

Filed under:
|

I'm tring to use Django 1.1 in GAE, But when I uncomment

use_library('django', '1.1')

in this script

import os

os.environ['DJANGO_SETTINGS_MODULE'] = 'settings'  
from google.appengine.dist import use_library 
#use_library('django', '1.1')


# Google App Engine imports.
from google.appengine.ext.webapp import util

# Force Django to reload its settings.
from django.conf import settings

settings._target = None

import django.core.handlers.wsgi
import django.core.signals
import django.db
import django.dispatch.dispatcher

# Unregister the rollback event handler.
django.dispatch.dispatcher.disconnect(
    django.db._rollback_on_exception,
    django.core.signals.got_request_exception)

def main():
    # Create a Django application for WSGI.
    application = django.core.handlers.wsgi.WSGIHandler()

    # Run the WSGI CGI handler with that application.
    util.run_wsgi_app(application)

if __name__ == "__main__":
    main()

I receives

AttributeError: 'module' object has no attribute 'disconnect'

What is going on?

© Stack Overflow or respective owner

Related posts about django

Related posts about google-app-engine