I have many __init__.py
files in my Django project and apps folder,
I think most were generated by Django when I initialised my project and its apps
I have seen in How do I delete DB (sqlite3) in Django 1.9 to start from scratch? that apparently we shouldn't delete the __init__.py
file in the migration folders.
Can I delete the others, empty __init__.py
files ? It s just that they kind of clutter the directory tree, so if they are useless I would rather remove them.
Edit : I just tried and deleted them and I didn t see any changes to the functionnalities of my website, everything worked fine. But as others pointed out they are definitely not useless so I ll leave them be.