Django - Makemigrations - No Changes Detected

Django - makemigrations - No changes detected

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

Django 3.0.7 - No Changes Detected after making Changes to Model

You have set app_label = 'easytrade20' in the meta option, but Django is unable to detect an app named easytrade20 in your project. That's why there aren't any changes.

So, add easytrade20 to your INSTALLED_APPS or remove app_label = 'easytrade20' from the model's Meta, and try again to run your migrations.

Django 1.7 - makemigrations not detecting changes

Ok, looks like I missed an obvious step, but posting this in case anyone else does the same.

When upgrading to 1.7, my models became unmanaged (managed = False) - I had them as True before but seems it got reverted.

Removing that line (To default to True) and then running makemigrations immediately made a migration module and now it's working. makemigrations will not work on unmanaged tables (Which is obvious in hindsight)

python manage.py makemigrations : No changes detected

You must put the name of your app <store> into the list of INSTALLED_APPS inside your settings.



Related Topics



Leave a reply



Submit