简体   繁体   中英

Django - no migrations folder after refactoring projects and apps names

I have refactored my app and project names, but after that Django doesn't create migrations folder in my app and doesn't actually apply my models migrations.

Even after migrations (with no warning nor error) I have no tables with my objects.

Does anybody know how to force django to do those migrations?

There can multiple reasons behind it. Please check following if you are missing something.

  • The app must have migrations/__init__.py folder. It automatically creates but if you did code refactoring. You can miss this.

  • Check INSTALLED_APPS in settings.py it should have the same app name as in admin.py .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM