search

Home  >  Q&A  >  body text

python - django1.9.5 的manage.py为什么没有 syncdb命令?

视频里的老师不知道用的什么版本,我用的1.9.5没有syncdb命令是怎么回事?改了吗?

怪我咯怪我咯2950 days ago322

reply all(1)I'll reply

  • PHPz

    PHPz2017-04-17 17:40:49

    1.8还是哪个版本开始,django移除了syncdbCommand, use the following two commands to synchronize (migrate) the database:

    python manage.py makemigrations
    python manage.py migrate

    reply
    0
  • Cancelreply