Re: Newbie DB question

2006-11-07 Thread Martin Bačovský
Russell Keith-Magee wrote: > I just created a test model and set the db_table to 'poll.polls', and > tables were created without difficulty. What problem did you > experience? > Problem is that django quotes db_table so table is called "poll.polls" and postgres stores it in default schema "pub

Re: Newbie DB question

2006-11-07 Thread Russell Keith-Magee
On 11/7/06, Martin Bačovský <[EMAIL PROTECTED]> wrote: > E.g. polls.poll instead of polls_poll. At first it doesn't look like a big > deal, but it is more natural. > When you have big db model and need to access db from other sources then > Django it can do things easier. I just created a test

Re: Newbie DB question

2006-11-07 Thread Martin Bačovský
Thank you for quick response. Russell Keith-Magee wrote: > On 11/6/06, Martin Bačovský <[EMAIL PROTECTED]> wrote: > >> I have two questions I was unable to google: >> - Is Django going to support database views? >> > > We don't have any immediate plans to support views; however, if > som

Re: Newbie DB question

2006-11-06 Thread Jay Parlar
On 11/6/06, Russell Keith-Magee <[EMAIL PROTECTED]> wrote: > Also, you might want to look at the SQLAlchemy branch - This branch is > reworking the Django ORM to use SQLAlchemy, which might open some > different avenues for accessing views. This branch is still quite new, > but if you're feeling

Re: Newbie DB question

2006-11-06 Thread Russell Keith-Magee
On 11/7/06, Russell Keith-Magee <[EMAIL PROTECTED]> wrote: > On 11/6/06, Martin Bačovský <[EMAIL PROTECTED]> wrote: > > > > I have two questions I was unable to google: > > - Is Django going to support database views? > > We don't have any immediate plans to support views; however, if > someone we

Re: Newbie DB question

2006-11-06 Thread Russell Keith-Magee
On 11/6/06, Martin Bačovský <[EMAIL PROTECTED]> wrote: > > I have two questions I was unable to google: > - Is Django going to support database views? We don't have any immediate plans to support views; however, if someone were to provide a patch that implemented the. > - Does Django support po

Newbie DB question

2006-11-06 Thread Martin Bačovský
I have two questions I was unable to google: - Is Django going to support database views? Solution i have found here: http://code.djangoproject.com/ticket/419 seems to be a bit tricky. I would rather like to create django.db.models.view which ancestors can produce SQL like 'CREATE OR REPLACE V