Imagine this directory structure:
app/ __init__.py sub1/ __init__.py mod1.py sub2/ __init__.py mod2.py
I\'
This is solved 100%:
Import settings/local_setting.py in app/main.py:
main.py:
import sys sys.path.insert(0, "../settings") try: from local_settings import * except ImportError: print('No Import')