sqlalchemy.exc.OperationalError: (sqlite3.OperationalError) attempt to write a readonly database code example
Example: sqlite3 attempt to write a readonly database
//do the follow
chown www-data /myproject
chown www-data /myproject/db.sqlite3
chmod 777 /myproject/db.sqlite3