如果我注释掉使用djangoforms的处理程序,其他一切似乎都有效.
以下是我修改过的app.yaml:
application: xxxxxxx
version: 5
#` -1+1
# runtime: python
runtime: python27
api_version: 1
inbound_services:
- mail
#` +3
libraries:
- name: django
version: "1.2"
handlers:
- url: /(.*\.(html|css|js|gif|jpg|png|ico))
static_files: static/\1
upload: static/.*
expiration: "1d"
# expiration: "1m"
- url: .*
script: main.py
- url: /_ah/mail/.+
script: lib/handler_mail.py
login: admin
Run Code Online (Sandbox Code Playgroud)
以下是我修改过的main.py的摘录:
import os
# dummy, enables django template filters to be registered
os.environ[u'DJANGO_SETTINGS_MODULE'] = u'conf'
#` -2
# from google.appengine.dist import use_library
# use_library('django', '1.2')
from functools import wraps …Run Code Online (Sandbox Code Playgroud)