How would i get the current URL with Python,
I need to grab the current URL so i can check it for query strings e.g
requested_url = \"URL_HERE\" ur
I couldn't get the other answers to work, but here is what worked for me:
url = os.environ['HTTP_HOST'] uri = os.environ['REQUEST_URI'] return url + uri