创建项目# startproject
切换到文件目录下:
python -m django startproject mysite
django-admin startproject mysite
运行项目#
#运行服务
python manage.py runserver
#指定端口
python manage.py runserver 8080
#允许非本地连接访问
python manage.py runserver 0.0.0.0:8000
py manage.py runserver 0:8000
#ipconfig查询本地ip
#http://192.168.1.103:8000/
网友评论