Hello everyone, I have a question about Django and the use of namespaces or packages to split the models.py file.
I would like to adopt the Java philosophy in which one file corresponds one class and one db table.
I tried to follow this guide, but it doesn’t work.
https://docs.djangoproject.com/en/3.1/ref/applications/#namespace-packages-as-appswhen I execute this command: "python manage.py makemigrations myapp"
Return this warning: "No changes detected in app"
Is it possible to do this structure?
/models
__init__py # if i use package, or without for namespace
#common import
car.py # class car
group.py # class group
manufactor.py # class manufactor
/otherPackage
__init__py
common import
otherClass.py
I hope you understand what I’d like to do.
Thank you.