I already have a django project and it logical like those:
url: URL?username=name&pwd=passwd
view:
def func(request): dic = request.GET username = dic.get("username") pwd = dic.get("pwd") but now we need encrypt the data. Then, the request become this:
url: URL?crypt=XXXXXXXXXX (XXXXXXXX is encrypted str for "username=name&pwd=passwd")
so I need modify every view function. But now I want decrypt in django middleware to prevent from modifying every view function.
but when I modify request.GET, I recive error msg "This QueryDict instance is immutable". How can I modify it?