Whats the simpliest way to obtain the URL of the webpage you are currently on?
For example if i have a python function and i call it from within a webpage, whats the best way to obtain the URL. What maybe an easier question how is how do you obtain the variables passed within the URL i.e. after the "?"
I've tried calling:
def return_query(self):
self.request.url
I have also tried
def return_query2(self):
self.request.query_string
But i get a attrbiute error for request