dimanche 21 décembre 2014

Django on CentOS/Bluehost: Attempt to Write a Readonly Database, which Chmod besides 777 to use?

I am trying to get writing privileges to my sqlite3.db file in my django project hosted on bluehost, but I cannot get any other chmod command to work besides the dangerous/risky chmod 777. When I chmod 777 the db file and the directory, everything works perfectly.


However, in order to be more prudent, I’ve tried chmodding 775 the directory of the sqlite file and chmod 664 the actual db file itself. No luck. I still get OperationalError: Attempt to Write to a Read Only Database whenever I access a feature that requires writing to the db.


I appreciate any assistance.


Aucun commentaire:

Enregistrer un commentaire