Hello,
Django 1.3, Python 2.7, App engine version 1.7.0.
On app.yaml I state :
application: someapp
version: 1
runtime: python27
api_version: 1
threadsafe: yes
handlers:
- url: .*
script: index.app
On index.app :
application = django.core.handlers.wsgi.WSGIHandler()
util.run_wsgi_app(application)
When accessing a url I get in the log :
ERROR 2012-08-08 19:16:43,211 wsgi.py:189]
Traceback (most recent call last):
File
"/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/runtime/wsgi.py",
line 187, in Handle
handler = _config_handle.add_wsgi_middleware(self._LoadHandler())
File
"/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/runtime/wsgi.py",
line 225, in _LoadHandler
handler = __import__(path[0])
ImportError: No module named index
INFO 2012-08-08 19:16:43,225 dev_appserver.py:2952] "GET / HTTP/1.1"
500 -
>From what I learned, in the app.yaml the name of the script can't end in
.py . If I change it to .py I get on application startup :
*** Running dev_appserver with the following flags:
--admin_console_server= --port=8080
Python command: /usr/bin/python2.7
WARNING 2012-08-08 19:30:22,014 rdbms_mysqldb.py:74] The rdbms API is not
available because the MySQLdb library could not be loaded.
ERROR 2012-08-08 19:30:22,547 dev_appserver_main.py:584] Fatal error
when loading application configuration:
Invalid object:
threadsafe cannot be enabled with CGI handler: index.py
in "/Users/dlsa/code/xekmypic/app.yaml", line 17, column 1
The import fails when the filename is not ended in .py . How do I do it ?
Regards,
Daniel Santos
--
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/google-appengine/-/XCX3johzifcJ.
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.