Re: Improving aggregate support (#14030)

2014-01-13 Thread Josh Smeaton
Vendor specific SQL is now possible, and uses the monkey patching described above. I worked around the problem of temporarily changing the template, by putting the template and the function into the extra dict on init. Any modifications made to the dict are then made for that instance only. Com

Re: Improving aggregate support (#14030)

2014-01-13 Thread Josh Smeaton
I've rebased off your current lookups pull request to drag in all the changes made recently, and I pulled against upstream/master which has made looking at the diff between our branches extremely painful. Once your PR is applied to master, I'll be able to submit a proper PR though (after some s

Re: Feature request: serve_file() view in static app

2014-01-13 Thread Marc Tamlyn
`django.views.static.serve` is, in the words of the documentation, grossly inefficient and probably insecure, so it is unsuitable for production. Any attempt to make it more useful than its current use case (serving staticfiles in development) is unlikely to happen. Marc On 13 January 2014 20:39

Feature request: serve_file() view in static app

2014-01-13 Thread Rivo Laks
Hi everyone, I'm proposing to split out from the django.views.static.serve() view the functionality to serve a single static file. The new view could be named serve_file(), would take request and fullpath as parameters and would serve the given file. The code would essentially be the second hal

Re: Feature request: post/pre commit/rollback signals

2014-01-13 Thread Andrey Antukh
Thanks for your package and clear explanation ;) Greetings. Andrey. 2014/1/11 Aymeric Augustin > On 11 janv. 2014, at 11:05, Andrey Antukh wrote: > > > In my opinion, "the default case are solved with atomic block" seems to > be a workaround instead of a solution. > > As a short reminder, we’

Re: App-loading reloaded

2014-01-13 Thread Aymeric Augustin
This happens whenever a test app is renamed or removed. It's related to how runtests.py performs discovery. -- Aymeric. 2014/1/13 Michael Manfre > Git clean -fdx > > I had the same problem the other day. > On Jan 13, 2014 7:51 AM, "Josh Smeaton" wrote: > >> Hey Aymeric, >> >> I've just merge

Re: App-loading reloaded

2014-01-13 Thread Josh Smeaton
Perfect, that did the trick, thanks - Josh On Tuesday, 14 January 2014 00:25:38 UTC+11, Michael Manfre wrote: > > Git clean -fdx > > I had the same problem the other day. > On Jan 13, 2014 7:51 AM, "Josh Smeaton" > > wrote: > >> Hey Aymeric, >> >> I've just merged master back into a branch I'm w

Re: App-loading reloaded

2014-01-13 Thread Michael Manfre
Git clean -fdx I had the same problem the other day. On Jan 13, 2014 7:51 AM, "Josh Smeaton" wrote: > Hey Aymeric, > > I've just merged master back into a branch I'm working on, and I'm seeing > the following error when trying to run the django test suite: > > (django)smeatonj ~/Development/repo

Patch fix for #21430 : Exception to be raised when unpickiling QuerySet across unsupported django version

2014-01-13 Thread Prasoon Shukla
Hi. I'm new to the django community. I added a PR[0] for issue 21430 a couple of weeks back but there has been no response on the PR since (until recently when someone gave the patch an LGTM). So, can someone review it please. Thanks. [0] https://github.com/django/django/pull/2082 -- You re

Re: App-loading reloaded

2014-01-13 Thread Josh Smeaton
Hey Aymeric, I've just merged master back into a branch I'm working on, and I'm seeing the following error when trying to run the django test suite: (django)smeatonj ~/Development/repos/django/tests $ PYTHONPATH=..:$PYTHONPATH ./runtests.py Testing against Django installed in '/Users/smeatonj/