后端开发:
python
解释器、
pycharm
社区版、
navicate
、
mysql(phpstudy)
前段开发:
vs code
、
google
浏览器
django
项目配置
配置项目启动方式

创建模型
创建一个应用
在应用中创建模型类
根据模型类生成数据表
创建应用

创建模型类
创建并配置数据库连接
创建
book_db
数据库
在
settings.py
中配置数据库连接

生成表

1、根据模型类生成数据迁移文件
python manage.py makemigrations
2、根据数据迁移文件生成表
python manage.py migrations
创建和配置模版
django
中核心概念有这么几个
路由:将用户的访问分发到不同的视图函数处理
视图函数:处理用户请求,返回响应
模版:
html
页面,编写要在浏览器中展示的内容
ORM
:
django
操作数据库
模版配置
在项目根目录下创建templates 文件夹
在配置文件中配置模版文件的路径'DIRS':[os.path.join(BASE_DIR,'templates')],
在视图函数中通过
render
函数渲染模版