Use sub-query in ORM when distinct and order_by columns do not match

2015-01-24 Thread Miroslav Shubernetskiy
Hi everyone, Just created my first django new feature ticket and wanted to get some community opinion on the topic - https://code.djangoproject.com/ticket/24218#ticket. For convenience below is the ticket text: This ticket is to propose a slight change in ORM - use subqueries when querying a

Re: Support SECRET_KEY and Database creds as callables

2015-01-24 Thread Marc Tamlyn
I'm not sure what the benefit here would be - the settings are evaluated at start up time, not on every request and the server would need to be restarted for it to change. A patch to db.connections which allows the username and password to be looked up on each new connection might be interesting,

lazy_import_string

2015-01-24 Thread Riccardo Di Virgilio
Hi, I'm riccardo, currently working at Wolfram Reasearch Inc, I've done some contributions in the past, refactoring django.contrib.gis.measure In order to speed up loading time of my django application I'm using this code, which I think it can be inserted inside django.utils.module_loading

Support SECRET_KEY and Database creds as callables

2015-01-24 Thread 'Andres Mejia' via Django developers (Contributions to Django itself)
Hello Django devs, I would like to see if Django can support setting the SECRET_KEY and database creds as callables. Let me explain my situation. Here at Amazon, we use a system to store and fetch secrets such as a Django SECRET_KEY and database creds. There's a Python component to this