Pycharm 默认的数据库是SQLite,这里来配置使用mysql


1. 创建项目

django-admin startproject myweb2

2.创建app

python manage.py startapp home

3. 在mysql下创建数据库

create database myweb2

4. seting文件设置

python django 配置到mysql

5. 数据库同步操作

python django 配置到mysql

6. 去数据库查看对应结果

python django 配置到mysql






相关文章:

  • 2022-12-23
  • 2021-07-20
  • 2021-10-24
  • 2022-01-04
  • 2021-11-30
  • 2021-07-05
  • 2021-07-08
  • 2022-12-23
猜你喜欢
  • 2022-01-19
  • 2022-12-23
  • 2022-12-23
  • 2021-12-01
  • 2021-12-15
  • 2022-12-23
相关资源
相似解决方案