python sqlite3 OperationalError: attempt to write a readonly database

前端 未结 3 479
北恋
北恋 2021-01-07 23:02

I am trying to run a Flask REST service on CentOS Apache2 using WSGI. The REST service requires a very small storage. So i decided to use SQLite with sqlite3 py

3条回答
  •  执念已碎
    2021-01-07 23:50

    run

    sudo chmod 777 path-to-your-djangoproject-directory 
    

    The directory should be the one which contains manage.py and db.sqlite3 files. (the parent container).

    Worked in my case.

提交回复
热议问题