I have these two files:
- test.py
- config.py
These are the following functions stung to config.py:
config.py
debug = True
test.py
import config
print (config.debug)
But I am getting this error:
ModuleNotFoundError: No module named 'config'
The py3 convention is to use absolute imports:
from . import config
However, this leads to the following error:
ImportError: cannot import name 'config'
Can someone help me solve this?