On Apr 16, 5:07 pm, Craig Lucas <[email protected]> wrote: > I would be happy to test it. I just need a little guidance on how to > implement schemas. Like do I use db_schema in the meta class, is it in the > settings.py file? I saw some posts about setting the SCHEMA value in the > settings.py file, but not sure that would work as it seems like that would > limit you to using 1 schema
I will try to post an update to the ticket today if at all possible. Short version: You can use db_schema of the model's meta class. If that is not given, then the databases default schema is used, defined by database settings 'SCHEMA'. Global setting DEFAULT_SCHEMA is planned but not supported by the branch at the moment. Note that when using Django's testing framework and MySQL or Oracle, the given schema will be prefixed with the database's alias to avoid clashes between production and testing schemas. Not that you should test this using a database instance containing production data at all. - Anssi -- You received this message because you are subscribed to the Google Groups "Django developers" 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-developers?hl=en.
