1👍
✅
You should change your database name to an absolute path, so
'NAME': 'home/ubuntu/cs462/mysite/db.sqlite3',
in your settings.py
should be changed to:
'NAME': '/home/ubuntu/cs462/mysite/db.sqlite3',
note the slash before home
. Then,
sudo chown www-data /home/ubuntu/cs462/mysite/
should do it. If the database is already created, you should also run
sudo chown www-data /home/ubuntu/cs462/mysite/db.sqlite3
Source:stackexchange.com