Re: Tracking back exceptions

2018-01-05 Thread Tim Graham
Hi Steve, Please avoid the temptation to use this mailing list as a second level support channel. If you have a better understanding of the problem and want to propose a change to Django, then it would be appropriate to post here. On Friday, January 5, 2018 at 6:00:26 PM UTC-5, Stephan Doliov w

Tracking back exceptions

2018-01-05 Thread Stephan Doliov
I posted a similar query in django-users and haven't heard back yet, perhaps because I didn't formulate my inquiry clearly or because my inquiry gets deeper into django internals than a django-user post should. I have a situation, python 3.5, Django 2.0, Django Rest Framework 3.7.7 and I want t

Re: Database session deletion

2018-01-05 Thread Adam Johnson
Hi George-Cristian, I agree, the 'clearing the session store' paragraph could be more explicit about what conditions sessions do get deleted. I encourage you to check https://docs.djangoproject.com/en/dev/internals/contributing/ , open a ticket, and make a PR with some updated wording :) I also t

Re: Change Local Memory Cache to Use LRU #28977

2018-01-05 Thread Adam Johnson
I'm +1 for moving to LRU too, the eviction algorithm has always looked weird to me. And Josh's library shows there are valid uses of local memory caching in applications - perhaps moreso these days than when Django added caching and memcached was the latest thing. > You can also get a very nice b

Re: QueryDict and ordering

2018-01-05 Thread Tim Graham
Preservation of dict ordering is guaranteed in Python 3.7+ so that officially fixes this, correct? https://mail.python.org/pipermail/python-dev/2017-December/151283.html On Friday, January 5, 2018 at 1:14:03 PM UTC-5, Ole Laursen wrote: > > 2018-01-05 17:12 GMT+01:00 Tim Graham >: > > Hi, Did yo

Re: QueryDict and ordering

2018-01-05 Thread Ole Laursen
2018-01-05 17:12 GMT+01:00 Tim Graham : > Hi, Did you try writing a patch? I naively tried "class > MultiValueDict(OrderedDict):" as the only change and it doesn't pass the > tests. Perhaps more adaptations are required. Tried just now, and yeah it takes a little more adaptation. MultiValueDict is

Re: QueryDict and ordering

2018-01-05 Thread Tim Graham
Hi, Did you try writing a patch? I naively tried "class MultiValueDict(OrderedDict):" as the only change and it doesn't pass the tests. Perhaps more adaptations are required. As for the motivation, I'm not sure if you described the problem in enough detail. (i.e. what does "It makes highly dyna

QueryDict and ordering

2018-01-05 Thread Ole Laursen
Hi! Would it be possible to derive QueryDict (i.e. MultiValueDict) from an OrderedDict instead of dict? I'm finding it increasingly irritating that the original order is kept by the whole stack right until Django puts it into a dict. It makes some highly dynamic form situations more tedious to