[Answered ]-Start over with django migrations

2👍

  1. If an app doesn’t have a migrations/ directory with an __init__.py file (even on Python 3), Django won’t create any migrations if you don’t specify the app name. You either have to create the directories and __init__.py files, or you have to call ./manage.py makemigrations <app_name> for each app, which forces Django to create the directory.

  2. It doesn’t. It may connect to the database during the makemigrations command, but the migrations are purely based on your models.

👤knbk

Leave a comment