2 qq 26897915 qq_26897915 于 2015.06.15 21:02 提问

新浪sae配置django出错 ImportError: No module named wsgi

Traceback (most recent call last):
File "/data1/wwwdocs/799/mdqp/1/index.wsgi", line 2, in
from project0 import wsgi
File "/data1/wwwdocs/799/mdqp/1/project0gi.py", line 27, in
from django.core.wsgi import get_wsgi_application
ImportError: No module named wsgi

index.wsgi代码:
import sae
from project0 import wsgi

application = sae.create_wsgi_app(wsgi.application)

config.yaml代码:
name: mdqp
version: 1

libraries:

  • name: "django" version: "1.5" 网上有人说是上面这段的空格格式 但是改了还是没用

1个回答

oyljerry
oyljerry   Ds   Rxr 2015.06.15 21:47
Csdn user default icon
上传中...
上传图片
插入图片