I'm currently trying to import a module on Python but I'm receiving the following message:
Traceback (most recent call last):
File "test_db_conn.py", line 8, in <module>
from config import config_reader
ModuleNotFoundError: No module named 'config'
Here's the folder structure:
config
- __init.py
- config_reader.py
- config.ini
db_functions
- test_db_conn.py
And the code on 'test_db_conn.py':
# Import modules
from config import config_reader
import pymongo
# Query database and print result
db_client = pymongo.MongoClient(db_url)
db_status = db_client.test
print(db_status)
Are you able to help me with this?
Thank you in advance

import config_reader