The problem: when makingmigrations django does not see the model files. Error: No changes detected in app 'app_name'
Application structure:
app_name
- models
a_folder
- __init__.py
- models3.py
- __init__.py
- models1.py
- models2.py
Django version 2.2.0, python 3.7.2.
On the Internet, people advise in __init__.py to import all models, and it works. But. Before that, I created applications from which I also deleted the standard models.py, created the models folder, copied __init__.py into it, and there I created my own .py model files without importing them into __init__.py and everything migrated perfectly
@ m0nte-cr1st0 yes, @ Alexander was not originally migrating, because application is new.
__init__.py. Just in case, if this is not a typo - Alexander