美文网首页
How to move existing app to anot

How to move existing app to anot

作者: ccphantom | 来源:发表于2017-09-09 05:22 被阅读0次
  1. Cut the app to the destinated directory.
  2. Check existing migration.py, views.py, urls.py, setting.py, 'apps.py'.
    I fixed it by going into all of the migration files and renaming these lines:
field=models.ForeignKey(default=1, null=True, on_delete=django.db.models.deletion.CASCADE, to='books.models.Topic'),

to:

field=models.ForeignKey(default=1, null=True, on_delete=django.db.models.deletion.CASCADE, to='books.Topic')

相关文章

网友评论

      本文标题:How to move existing app to anot

      本文链接:https://www.haomeiwen.com/subject/zahojxtx.html