django-easy-audit icon indicating copy to clipboard operation
django-easy-audit copied to clipboard

django.db.utils.ProgrammingError on a multi-tenant application

Open andrewtmendoza opened this issue 4 years ago • 1 comments

django.db.utils.ProgrammingError: relation "easyaudit_requestevent" does not exist
LINE 1: INSERT INTO "easyaudit_requestevent" ("url", "method", "quer...
                    ^

I followed the instructions and am able to see the tables inside the database: image

Could it be because the SQL does not include the schema name (e.g. INSERT INTO tenant1.easyaudit_requestevent)?

andrewtmendoza avatar Dec 01 '20 23:12 andrewtmendoza

Hi. I'm not sure I'm particularly familiar with multi-tenant setups. That said, I don't think (at this time) that easy audit is implemented differently than any other django-app, so I wonder are you able to see a similar issue with other projects (e.g. another db-backed Django app/library)?

jheld avatar Jan 23 '21 03:01 jheld