human
Get current URL in Python
assistant
Here is some code to get current requested url

self.request.url

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.