Question:
I’m very new to Python. I’m trying to make a simple web server that pulls data from mymongodb
DB.This is my files architecture:

This is my code:

Answer:
port
needs to be an integer, but you’re passing it as a string.Convert it to an integer by wrapping the value in
int()
, like this:If you have better answer, please add a comment about this, thank you!