Although the following command is used when migrating
python3 manage.py makemigrations
Using this command fails
hoge@:huga/project$ python3 manage.py makemigrations
No changes detected
It was because I didn't tell settings.py in the parent project that I added the child project.
settings.py
INSTALLED_APPS = [
'django.contrib.admin',
'Add the created project name with the migrations folder'
]
By adding the above, initial.py was created successfully. It was a rudimentary thing, and even when I looked it up, it didn't come out. It was difficult to understand because the error details were not displayed.
Recommended Posts