Re: Database "execute hooks" for instrumentation

2017-04-13 Thread Adam Johnson
django-perf-rec would love this, it currently monkey patches connection.ops.last_executed_query to listen to all the queries going on. On 7 April 2017 at 16:10, Shai Berger wrote: > On Friday 07 April 2017 17:47:51 Carl Meyer wrote: > > Hi Shai, > > > >

Re: DJANGO_SETTINGS_FILE

2017-04-13 Thread Adam Johnson
I implemented this based upon the code snippet I showed in my first reply. Anyone who wishes to use DJANGO_SETTINGS_FILE can now pip install django-settings-file and follow its setup instructions: https://pypi.python.org/pypi/django-settings-file I've added some caveats I thought of during deve

Re: [Feature Request] Let manage.py ignore migration dependencies

2017-04-13 Thread Shai Berger
Hi, On Thursday 13 April 2017 18:18:57 Brock Hallenbeck wrote: > > Due to these duplicate tables, my process of setting up an app database is > as follows: > > 1.Create database on server / point django at it / set up router > 2. migrate --database=app_db > 3. Delete all the duplicate auth_* an

[Feature Request] Let manage.py ignore migration dependencies

2017-04-13 Thread Brock Hallenbeck
We are a municipality using Django to make a CRUD tool. Our use cases are usually some department in the town wants to do CRUD stuff so they come to us. Our dream is to make an app, plug in some models and be mostly done. However it is very common for us to need to use different databases. Due t

Re: assertRaises vs. assertRaisesMessage

2017-04-13 Thread Mads Jensen
On Sunday, April 9, 2017 at 3:24:42 PM UTC+2, Josh Smeaton wrote: > > We throw lots of ValueErrors and TypeErrors rather than creating new > exception types all over the place. There's definitely an argument to be > made that different exception types can be created. But I know that I've > defin