[Answered ]-Django-admin: cant access admin backend "attempt to write a readonly database"

1👍

This isn’t a python error; it’s an issue with your filesystem. You need to check that all read-write permissions are available.

$ chown Username /path/to/dbfile.db

1👍

cd to the folder with that database and do

chown www-data:www-data .         (apache2 or httpd for non-debian)
chown www-data:www-data <database>
chmod 700 <database>
chmod 755 .
👤Filip

0👍

be carefull with changing stuff like @Filip said:

> django.core.exceptions.ImproperlyConfigured:
> 'django.db.backends.sqlite3' isn't an available database backend. Try
> using 'django.db.backends.XXX', where XXX is one of:
>     'mysql', 'oracle', 'postgresql'
👤Maks

Leave a comment