@app.route("/<requested_username>/<requested_team>", methods=['GET', 'POST'])
^How do I make this so that no matter what is entered – it still goes to the correct url
For example:
/jose/SWaGGer #should work
/jOse/swagger #should work
/josE/Swagger #should work
etc.
Oh, and I am using Python/Flask by the way – and nope I did not find an explanation for this in the docs.
In your view method call
lower()on your strings before working with them. If you do this, they will always be stored and used lower case.E.g.:
You should then always store your strings in lower case in your database, so call
lowerbefore saving them.