Python is fairly accepting with modules being either directories or files.
Going the dir/__init__.py route also allows you to do a bit of encapsulation as you can not export things.
Of course, someone could import from your file directly still. But, yeah, there is no reason to keep all of your models in a single file.
Python is fairly accepting with modules being either directories or files.
Going the dir/__init__.py route also allows you to do a bit of encapsulation as you can not export things.
Of course, someone could import from your file directly still. But, yeah, there is no reason to keep all of your models in a single file.