1. django-admin startproject ddiga //新建djangoproject
2. cd ddiga
django-admin startapp wcs //新建app
3. manage.py runserver //启动server
4. 在项目根目录ddiga下新建 django_wsgi.py
#!/usr/bin/env python
# coding: utf-8
import os
import sys
# set encoding:utf8
reload(sys)
sys.setdefaultencoding('utf8')
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "ddiga.settings")
from django.core.wsgi import get_wsgi_application
application = get_wsgi_application()
阅读(559) | 评论(0) | 转发(0) |