#6148: Add generic support for database schemas
---------------------------------------------------+------------------------
Reporter: ikelly | Owner: kmpm
Status: assigned | Milestone:
Component: Database layer (models, ORM) | Version: SVN
Resolution: | Keywords: oracle
postgresql mysql schemas
Stage: Accepted | Has_patch: 1
Needs_docs: 0 | Needs_tests: 0
Needs_better_patch: 1 |
---------------------------------------------------+------------------------
Comment (by oldium):
Replying to [comment:39 hejsan]:
> The app specific schema might for example be specified in the
__init__.py file in the apps root folder, or in a settings.py file in that
folder, or just use the apps name. That would solve 99% of use cases IMO.
This is something for application-specific settings; I don't know if this
is supported in Django currently. Anyway, each model in your application
can have the schema specified explicitly, it could be also some
application constant - like this:
{{{
APP_SCHEMA = "myschema"
class MyModel(models.Model):
...
class Meta:
db_schema = APP_SCHEMA
}}}
--
Ticket URL: <http://code.djangoproject.com/ticket/6148#comment:40>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" 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-updates?hl=en.