I am trying to execute the command
python run.py
, and getting the following error
Traceback (most recent call last): File "run.py", line 13, in <module> app.config['MFLIX_DB_URI'] = config['PROD']['MFLIX_DB_URI'] File "C:\Users\jitendra.gopaluni.VUHL\Anaconda3\envs\mflix\lib\configparser.py", line 960, in __getitem__ raise KeyError(key) KeyError: 'PROD'
My dotini_win.ini is as follows
[PROD]
SECRET_KEY = 683b1ec9-fd58-451f-b881-5d73b9ddfbe3
MFLIX_DB_URI = mongodb+srv://m220student:m220password@mflix.e1ypo.mongodb.net
MFLIX_NS = sample_mflix
[TEST]
SECRET_KEY = 683b1ec9-fd58-451f-b881-5d73b9ddfbe3
MFLIX_DB_URI = mongodb+srv://m220student:m220password@mflix.e1ypo.mongodb.net
MFLIX_NS = sample_mflix’
PS:- How do I make sure if my secret key is right or what is the correct procedure to get one!!