I want the WHOLE url after the slash to be passed to a script. If I do :
url(r'^(?P<id>.*)$', alias.get, name="alias"),
Then I only get the path component and not the query parameters passed to my function. I then have to :
def urlencode(dict) : if len(dict) == 0 : return "" params = {} for k, v in dict.items() : params[k] = v.encode('utf-8') return "?" + urllib.urlencode(params) def get(id) : id += urlencode(request.GET)
I am doing this for a lot of my views and I keep forgetting it and creating bugs. Is there any way to tell my urls.py to match everything including the query string?