How to move existing app to anot

2017-09-09  本文已影响0人  ccphantom
  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')
上一篇 下一篇

猜你喜欢

热点阅读