importlib.import_module ignoring re-exports made in __init__.py
问题 (Originally asked on r/learnpython, but figured I'd ask here too.) Since this problem came up while dealing with django, I'll explain in that context. So I have a django project folder, and some internal django apps living in that project folder, like this: project_module ├ apps │ ├ app_module1 │ │ ├ models.py │ │ └ ... │ ├ app_module2 │ └ ... ├ settings.py └ ... now the app_modules are available as project_module.apps.app_module1 and so on, but since there won't be anything colliding with