求知若饥,虚心若愚

python_django_sae入口配置

--index.wsgi
import sys
import os.path
 
os.environ['DJANGO_SETTINGS_MODULE'] = 'APPNAME.settings'
sys.path.append(os.path.join(os.path.dirname(__file__),'APPNAME'))
 
import sae
from dalihelp import wsgi 
application = sae.create_wsgi_app(wsgi.application)

 --config.yaml

name: APPNAME
version: 1
 
libraries:
- name: django
   version: "1.5"
handlers:
- url: /static/
  static_path: ./

 

posted @ 2014-10-22 11:37  初行  阅读(278)  评论(0编辑  收藏  举报