【Django】startup

安装

pip3 install django -i http://pypi.douban.com/simple/ --trusted-host=pypi.douban.com/simple

生成django项目

django-admin startproject testdjango

运行django

cd testdjango
python3 mange.py runserver

在这里插入图片描述

访问django服务器

上面有输出http://127.0.0.1:8000
这是说开启了这样一个django服务在本地的8000端口,访问协议为http
可以通过浏览器访问
在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/qq_34954047/article/details/124291054
今日推荐