I have a models.py file with models in it. Now I want to reorganize these models into a package as described in an official documentation. Can I do it with the existing models? How does it affect previous migrations?
Asked
Active
Viewed 368 times
0
-
1This shouldn't change anything, but you can always run `makemigrations` afterwards to see if anything has changed. – 9769953 Oct 06 '21 at 11:00
-
Could you please tell me that, where we create our models after create this directory? ```myapp/models/__init__.py¶``` – Tariq Ahmed Oct 06 '21 at 13:14
-
1The answer you seek is here: https://stackoverflow.com/questions/6336664/split-models-py-into-several-files/37758721#37758721 – michael_teter May 30 '22 at 15:48