[Django]-Django psycopg2.errors.InvalidSchemaName: no schema has been selected to create in

6πŸ‘

I resolved the issue by my own. The reason was unexpected, because the error is not that informative. I checked the permission to create tables in the schema my_custom_schema for the user and found out the it’s not permitted. So after I granted the permission everything worked well.

GRANT ALL ON SCHEMA my_custom_schema TO my_user;
πŸ‘€Fomalhaut

Leave a comment