1、创建工程
C:\procedure\projects>django-admin startproject mysite
2、同步数据库
C:\procedure\projects\mysite>python manage.py syncdb
3、创建app
C:\procedure\projects\mysite>python manage.py startapp blog
4、启动服务
C:\procedure\projects\mysite>python manage.py runserver 127.0.0.1:8000
5、浏览器登录
时间: 2024-10-26 12:11:52