Attempt to write a readonly database - Django w/ SELinux error

后端 未结 8 1863
粉色の甜心
粉色の甜心 2020-12-07 18:32

I have a CentOS server on which I have Apache, Django, Django CMS and mod_wsgi. My Django project files are stored in the /srv directory and I have SELinux tur

8条回答
  •  情歌与酒
    2020-12-07 19:15

    Here my solution:

    root@fiq:/home/django/django_project# chmod 777 db.sqlite3
    root@fiq:/home/django/django_project# cd ..
    root@fiq:/home/django# chmod 777 *
    

    Go to <'your_website/admin'> put username and password.. That's it.

提交回复
热议问题