1.创建Django项目:
=> 进入pcode目录 命令行 $ django-admin.py
startproject mysite
2.启动Django:
=> $ python manage.py
runserver
3.更改server端口:
=> $ python manage.py
runserver 9000
4.更改服务器和端口:
=> $ python manage.py
runserver 192.168.1.22:9000
5.python代码添加中文注释时必须制定默认编码: # -*- coding:
utf-8 -*- 或者 #coding=utf8