PostgreSQL
 SQL >> Database >  >> RDS >> PostgreSQL

Usare più schema in Django con PostgreSQL

Puoi impostare search_path nelle OPTIONS del database:

DATABASES = {'default': {'ENGINE':'django.db.backends.postgresql_psycopg2', 'OPTIONS': {'options': '-c search_path=your_schema'}, 'NAME':'your_name', 'USER':'your_user', 'PASSWORD':'your_password', 'HOST':'127.0.0.1', 'PORT':'5432'}}