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: ./

 

你可能感兴趣的:(python)