form['user_password'] = config.DATACOUP_PASSWORDI want to put my own password in there. WITHOUT the config.py file
So I want to just put the psasword directly into the script.
I tried these but they don't work:
form['user_login'] = myuser123
form['user_login'] = "myuser123"
form['user_login'] = 'myuser123'I get this same error for all the above:
Traceback (most recent call last): File "<stdin>", line 1, in <module> TypeError: 'NoneType' object does not support item assignmentAlso bonus question: How do I import the config.py file? I can't simply do import config.py because it's not in the same directory. Is there a simple way to import it if its not in the same directory?