DatabaseError at /admin/ attempt to write a readonly database
2,028 views
Skip to first unread message
Fadi Samara
unread,
May 27, 2012, 4:45:18 AM5/27/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to django...@googlegroups.com
Hi,
I have django running against apache with wsgi, using sqlite3 as my database.
When I run the admin page, I will end up with "attempt to write a readonly database", the only solution worked for me to chmod 777 to the django project directory.According to Django website they don't recommend "Authenticating against Django’s user database from Apache" this solution and left it to the community to make a better solution.
Can any one please point me to a secure and recommended solution to let Apache authenticate a Django project database.
Thanks,
Antoni Aloy
unread,
May 27, 2012, 9:43:22 AM5/27/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to django...@googlegroups.com
Don't use sqlite, use a postressql or mysql database.
If you just need sqlite:
Create an special user for your application, and addit to the www-data group,
and mark sqlite databse as read/write for that user.