0

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?

Vit Amin
  • 574
  • 5
  • 20
  • 1
    This 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
  • 1
    The 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

0 Answers0