This is a bit more complicated than complex shielding. Look at Ticket # 6148 in Django, maybe a solution, or at least a patch. It makes some minor changes in the depth of the django.db core, but hopefully will be officially included in django. After that, it's just a question
db_schema = 'whatever_schema'
in the Meta class or for a global set of changes
DATABASE_SCHEMA = 'default_schema_name'
in settings.py
UPDATE: 2015-01-08
The corresponding problem in django has been open for 7 years, and the fix there will no longer work. The correct answer to this question should be ...
At the moment, you cannot use postgreSQL schemas in django out of the box.
kmpm Dec 16 '09 at 7:18 2009-12-16 07:18
source share