Django - makemigrations - No changes detected

发布时间 2023-05-26 20:47:08作者: ChuckLu

Django - makemigrations - No changes detected

回答1

To create initial migrations for an app, run makemigrations and specify the app name. The migrations folder will be created.

./manage.py makemigrations <myapp>

Your app must be included in INSTALLED_APPS first (inside settings.py).