Jijoy
Jijoy

Reputation: 12714

moving django project to google app engine

I am trying to move a django project to google appengine. So I followed http://code.google.com/appengine/articles/django.html . But

django.dispatch.dispatcher.connect(
    log_exception, django.core.signals.got_request_exception)

django.dispatch.dispatcher.disconnect(
    django.db._rollback_on_exception,
    django.core.signals.got_request_exception)

was giving me error saying can't find dispatcher.connect/dispatcher.disconnect . So I changed the code as

django.dispatch.dispatcher.Signal.connect(
    log_exception, django.core.signals.got_request_exception)

But now , when I am running the application , I am getting following error

*File "C:\Program Files\Google\google_appengine\google\appengine\tools\dev_appserver.py", line 2208, in ExecuteOrImportScript exec module_code in script_module.dict File "C:\Personal\Study\Python\twtApp\src\main.py", line 23, in import django.dispatch.dispatcher.Signal ImportError: No module named Signal*

As it's said the google article , I have copied django folders to top level folder of my projects .

Is there anything I am missing ?

Pls help ..

Upvotes: 0

Views: 447

Answers (1)

Paul McMillan
Paul McMillan

Reputation: 20107

Your issue lies in Python being unable to import the Signal module. Make sure it's properly in your path, and that it isn't somehow missing from your Django install.

I would strongly recommend that you use the google-app-engine-django project instead. You'll have a lot more luck.

http://code.google.com/p/google-app-engine-django/

Upvotes: 1

Related Questions