[Answer]-Migrate models in package hierachy without South

1👍

Horizontally splitting django models across multiple files is a valid approach. A good explanation can be found here.

Django looks for your models in the models module which can be a file or a valid python package.

If you have a valid python package( a directory with a __init__.py file) it will try to discover the models based on the contents of __init__.py.

Make sure that your __init__.py file looks like this:

from Album import Album
from Artist import Artist

Then django should discover your models correctly.

0👍

In your models.py

add.

 # myproject/app/models.py:
 from models/Album.py import *
 from models/Artist.py import *

Note about : From migrations has been started supported. Please check Migrations.

Leave a comment