Running Flask framework on App Engine: Could not find module app.cgi
- by Linc
I'm running this Flask example app on App Engine:
http://github.com/gigq/flasktodo
You can see on the github page that app.cgi is in the main directory for this project.
However, when I run this code I get an error complaining about a missing app.cgi:
ERROR 2010-05-01 16:43:47,006 dev_appserver.py:2109] Encountered error loading module "app.cgi": <type 'exceptions.ImportError'>: Could not find module app.cgi
Traceback (most recent call last):
File "/opt/google_appengine/google/appengine/tools/dev_appserver.py", line 2096, in LoadTargetModule
module_code = import_hook.get_code(module_fullname)
File "/opt/google_appengine/google/appengine/tools/dev_appserver.py", line 1279, in Decorate
return func(self, *args, **kwargs)
File "/opt/google_appengine/google/appengine/tools/dev_appserver.py", line 1956, in get_code
full_path, search_path, submodule = self.GetModuleInfo(fullname)
File "/opt/google_appengine/google/appengine/tools/dev_appserver.py", line 1279, in Decorate
return func(self, *args, **kwargs)
File "/opt/google_appengine/google/appengine/tools/dev_appserver.py", line 1908, in GetModuleInfo
submodule, search_path = self.GetParentSearchPath(fullname)
File "/opt/google_appengine/google/appengine/tools/dev_appserver.py", line 1279, in Decorate
return func(self, *args, **kwargs)
File "/opt/google_appengine/google/appengine/tools/dev_appserver.py", line 1887, in GetParentSearchPath
parent_package = self.GetParentPackage(fullname)
File "/opt/google_appengine/google/appengine/tools/dev_appserver.py", line 1279, in Decorate
return func(self, *args, **kwargs)
File "/opt/google_appengine/google/appengine/tools/dev_appserver.py", line 1864, in GetParentPackage
raise ImportError('Could not find module %s' % fullname)
ImportError: Could not find module app.cgi
How do I indicate to dev_appserver.py where to look to find it?