Did you consider just trying something like this:
from django.http import QueryDict
from collections import OrderedDict
class OrderedQueryDict(QueryDict, OrderedDict):
pass
my_dict = OrderedQueryDict(request.META['QUERY_STRING'])
print request.META['QUERY_STRING']
On Thursday 08 June 2017 20:01:24 Bernd Wechner wrote:
> Bad idea? A subjectivity at best to be honest.
True. In HTTP there is only data (through forms) and state (through cookies).
Ordering of data is
under (malicious) user control.
Now, if the scope of ordering is fixed and not dynamic, then p
Bad idea? A subjectivity at best to be honest. But yes, I was thinking I
could pull it from the querystring but also would rather not reparse
something already done, let alone in a framework I and many jumped on
because it's DRY ;-)
The problem I'm solving is not a mission critical thing by an
On Thursday 08 June 2017 17:11:36 Bernd Wechner wrote:
> Am curious if there's an easy way to walk through request.GET in
the
> order they appeared on the URL? It strikes me the dictionary has
lost
> this ordering information, and I wonder if it's available anywhere or
> how one might extend Djan
4 matches
Mail list logo