Fred

OperationalError: attempt to write a readonly database

django Icon

OperationalError

attempt to write a readonly database

An unhandled exception occurred
Exception source not available.

Solution

The folder containing the sqlite db needs to be owned by the apache group (www-data)

Fixed with:
sudo chgrp -R www-data nameofprojectfolder            
Apr 03, 2021 Anyone

0 replies


Install the browser extension

Found this solution helpful? Try our extension for quick solutions to your Django errors.

Chrome logo Add to Chrome - It's free