Im trying to make a web app in Flask with Pymongo and a MongoDB Im getting that it cant find the attribute password in my db under users
elif request.method == 'POST':
login_user = request.form['username']
db_user = mongo.db.users.find({"username": "MattatMatt"})
pw = db_user.password
I know im being an idiot, please help. This is the database:
username:"MattatMatt"
password:"..."
If you need anything else please ask. Thank you!!!