I am using PostgreSQL 9.3 and Django 1.7.4 with psycopg2 2.5.4
The database administrator asked us to create a schema for our application, and not publish it.
We defined the circuit and we had to add
'OPTIONS': {
'options': '-c search_path=custom-schema-name'
},
to the settings.
During testing, Django creates a test database with the appropriate name, but we cannot set the name of the user schema.
I tried to find a way to customize the name of the user schema (I read the documents ), but I can not find a way to force the creation of the name of the schema during testing.
The error I get is
django.db.utils.ProgrammingError: no schema was selected to create in
When I see the created database, it has a public schema created by default.
public
'OPTIONS': {
'options': '-c search_path=custom-schema-name,public'
},
.
- , ?