B站视频、常用命令
Django学习:https://www.bilibili.com/video/BV1JE411V7xk?p=21 https://www.bilibili.com/video/BV1i7411e7CY?p=15 html+css学习:https://www.bilibili.com/video/BV14J4114768?p=6
创建项目:django-admin startproject 项目名称 启动项目:python manage.py runserver 停止运行项目:Ctrl + C app的创建和注册:python manage.py startapp app名称 settings.py文件中添加
迁移数据库: python manage.py makemigrations python manage.py migrate
bootcss.com jq22.com
Ctrl + R
return render(request, ‘details.html’, {‘all_text’: all_text}) {{ all_text }} {% for i in all text %}
{% endfor %}
file参考:https://blog.csdn.net/dixian4894/article/details/102209166