Hi,

nope, model names match to the database but, for example, I haven't
found a way to be able to create a pgsql function inside a custom
script so some stuff, queries that invoke functions (stored
procedures), cannot be tested. Also, given that the database SQL
script is versioned, I'd really like to just stick to that to create
the database instead of undoing some of the stuff Django creates
automatically and replacing it in custom model SQL files (the only way
around multi-column primary keys).

Given Django's good enough support for legacy databases, I was
wondering if it wouldn't be also possible to use said legacy database
for testing, ie. create an x_test database and force Django to use it,
instead of having it bailing out because it cannot drop the test
database.

On Jun 25, 5:06 pm, phillc <[EMAIL PROTECTED]> wrote:
> i think i understand what youre saying?
>
> by test database, you mean you want to test django out but your
> declared models names dont match your db?
>
> there is a meta option for db table
>
> http://www.djangoproject.com/documentation/model-api/#db-table
>
> On Jun 25, 11:54 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
> wrote:
>
> > Hi everyone,
>
> > I'm working on a project that has a very solid database design but
> > many of the used features aren't supported by Django (for example,
> > multiple column primary keys).
>
> > The project has a complete database creation script but I haven't
> > found a way to use it to create the test database which I really want
> > to, given the ability to use Django's testing framework. Is there a
> > way to enable creation of the test database not by the declared models
> > by with a SQL script?
>
> > TIA
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to