django-tenant-schemas
django-tenant-schemas copied to clipboard
Permission denied for database
Created command for create public tenant and it created it without problem. Then i try create a customer tenant via endpoint and i get following error
An error occurred while resolving field PublicMutation.createAccount Traceback (most recent call last): File "/Users/Atalay/.pyenv/versions/3.6.4/lib/python3.6/site-packages/django/db/backends/utils.py", line 85, in _execute return self.cursor.execute(sql, params) psycopg2.ProgrammingError: permission denied for database hrsoftware
Using python 3.6.4, django 2.0.2 and postgresql 9.6
The same error for me: python 3.4, django 1.11.7 and postgresql 9.4.12
Public tenant uses the default public schema. Make sure your database user has the CREATE SCHEMA rights to create additional tenant schemas.
Thanks!
Thanks!