Django - makemigrations - No changes detected

Chuck Lu / 2023-05-27 / 原文

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).