侧边栏壁纸
  • 累计撰写 197 篇文章
  • 累计收到 496 条评论

Django的安装

2019-10-16 / 0 评论 / 73 阅读

第一步:

设置pip的配置文件 改为中国

vim ~/.pip/pip.conf


[global]

index-url = https://pypi.tuna.tsinghua.edu.cn/simple

[install]

trusted-host = https://pypi.tuna.tsinghua.edu.cn

第二步:

<span style="font-variant-ligatures:no-common-ligatures;">下载Django</span> 

sudo pip3 install django==1.11.*


第三步:

创建项目


django-admin startprobject web



第四步:

启动项目


cd web

python3 manage.py runserver




评论一下?

OωO
取消