1、创建django项目:
进入bae应用源码目录(appidd01iud80bg)执行django-admin.py startproject
blog
2、修改index.py的内容如下所示
#-*- coding:utf-8 -*-
import os
import
sys
from django.core.handlers.wsgi import WSGIHandler
from
bae.core.wsgi import WSGIApplication
os.environ[‘DJANGO_SETTINGS_MODULE‘] = ‘blog.settings‘
path =
os.path.dirname(os.path.abspath(__file__))+‘/blog‘
if path not in
sys.path:
sys.path.insert(1,path)
application =
WSGIApplication(WSGIHandler())
3、提交新建项目的目录及代码,和index.py到服务器上。
4、按第一步的方法发布应用,点击查看可以看到It
worked! Congratulations on your first Django-powerd page.