microblog
microblog copied to clipboard
Chapter 4: Best Practices
I just want to know if its better to insert config.py and model.py into respective directories config and model.
And in case that this is better, must I create an __init__.py in these directories so then I work with them as packages?
It really makes no difference. A sub-package is normally used when you have more than one file. For example, if your models.py gets large you can split it into multiple parts and put all the parts inside a models sub-package.