【发布时间】:2016-04-03 15:27:32
【问题描述】:
我正在尝试使用 Google App Engine 部署 Django 示例项目。它抛出了问题标题中提到的错误。
本地应用程序运行良好。在 requirements.txt 我将 mysql-python 版本更改为 1.2.4 和 1.2.5 都不起作用。我收到 500 错误。
我在 SO 上检查了同一个问题的许多答案,但似乎没有任何效果。
我的 app.yaml
# [START django_app]
version: 1
runtime: python27
api_version: 1
threadsafe: yes
handlers:
- url: /static
static_dir: static/
- url: .*
script: mysite.wsgi.application
# Only pure Python libraries can be vendored
# Python libraries that use C extensions can
# only be included if they are libraries available
# as part of the AppEngine SDk
libraries:
- name: MySQLdb
version: "latest"
# [END django_app]
我的 appengine_config:
# [START vendor]
from google.appengine.ext import vendor
vendor.add('lib')
# [END vendor]
【问题讨论】:
标签: python django google-app-engine