bernardopires / django-tenant-schemas

Tenant support for Django using PostgreSQL schemas.
https://django-tenant-schemas.readthedocs.org/en/latest/
MIT License
1.46k stars 424 forks source link

Permission denied for database #539

Open atalaybaysal opened 6 years ago

atalaybaysal commented 6 years ago

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

Dima216 commented 6 years ago

The same error for me: python 3.4, django 1.11.7 and postgresql 9.4.12

pvandegeer commented 6 years ago

Public tenant uses the default public schema. Make sure your database user has the CREATE SCHEMA rights to create additional tenant schemas.

Dima216 commented 6 years ago

Thanks!

bonfimjustino7 commented 1 year ago

Thanks!