Re: Per application default database?

2010-02-03 Thread kmpm
s/util.py", line 19, in execute return self.cursor.execute(sql, params) File "/home/peterm/python/dalsland/local/py/lib/python2.6/site- packages/django/db/backends/postgresql_psycopg2/base.py", line 44, in execute return self.cursor.execute(query, args) django.db.util

Re: Per application default database?

2010-02-02 Thread kmpm
Wouldn't a database router like this sort of do the thing for now... ==settings.py== DATABASE_ROUTERS = ['dbrouter.AppRouter',] ==dbrouter.py== APPS_WITH_DB=('my_app_with_same_name_as_db', ) class AppRouter(object): """A router to control all database operations on models in that belo

Review of patch for #6148, Generic db_schema.

2009-12-16 Thread kmpm
I have made some progress on http://code.djangoproject.com/ticket/6148 and got it back in sync with trunk. I would like someone to have a look at it and see if it's inclusion ready. Thanks in advance. Peter -- You received this message because you are subscribed to the Google Groups "Django dev

Re: #6148. Should database schemas be created as well?

2009-08-17 Thread kmpm
It's decided then... No schema creation. Thanks for good input and fast response... Peter On 18 Aug, 02:08, Russell Keith-Magee wrote: > On Mon, Aug 17, 2009 at 11:12 PM, Ian Kelly wrote: > > > On Mon, Aug 17, 2009 at 8:19 AM, kmpm wrote: > > >

#6148. Should database schemas be created as well?

2009-08-17 Thread kmpm
schema creation if it doesn't exist should it be deleted in sqlreset as well? //Peter (KMPM) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, s