I know with sqlite you run the commands: chmod 664 ~/myproject/db.sqlite3 sudo chown :www-data ~/myproject/db.sqlite3 sudo chown :www-data ~/myproject
These will give apache access to the db, but how do would I go about doing this with postgres? Thanks
CodePudding user response:
There are a lot of different reasons that you could be receiving a 403 error with you configuration so it's really tough to say with the amount of information you've given us to work with.
Have you checked to make sure that your urls.py file is set up to correctly route to your view? Are you certain that you're using the correct user name and password for your database? Is your database configured correctly? Are you certain that any and all files you'll need to reference as the apache user are set with permissions such that they can be read from your environment? Those are just a few suggestions for where to look.
The more information you can provide to us, the better we'll be able to answer your question.
Good luck!
CodePudding user response:
The problem was to do with my database not being configured correctly, thanks problems sorted.
