V
V
Viktor Yurchenko2019-02-11 20:00:45
PostgreSQL
Viktor Yurchenko, 2019-02-11 20:00:45

How to fix Permission denied for relation error?

I am editing a site on django after creating the application and successfully migrating, an error occurred that I do not have access rights. I can't figure out how to grant permissions to a user. I did everything as they say in this instruction:
https://stackoverflow.com/questions/12233046/djang...
deleted the database, restored it from the dump, gave the rights as in the instructions, gave the database superuser rights, but the error does not go away. I don’t understand what’s the matter, I created another database user, gave the rights the same error, I don’t understand that I’m not doing this.
Now, when you go to any page of the site, you can see an error.
Website link: elec.market
Commands used:

psql freechips -c "GRANT ALL ON ALL TABLES IN SCHEMA public to postgres;"
psql freechips -c "GRANT ALL ON ALL SEQUENCES IN SCHEMA public to postgres;"
psql freechips -c "GRANT ALL ON ALL FUNCTIONS IN SCHEMA public to postgres;"
GRANT ALL PRIVILEGES ON DATABASE freechips TO postgres;

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question