1的基础上

settings.py

python 学习2

blog/models.py:

 python 学习2

打开一个cmd, net start mysql ,启动mysql服务

mysql -uroot -p

python 学习2

python 学习2

再在py_fir目录下打开另一个cmd窗口;

python 1.7及以上版本请运行 python manage.py makemigrations, python manage.py migrate

python 1.6及以下运行 python manage.py syncdb

python 学习2

python 学习2

python 学习2python 学习2

相关文章:

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