Aha, just stumbled across an article explaining this. Also Django have info on their NewbieMistakes page.
The solution is to make sure the directory containing the database file also has write access allowed to the process.
In my case, running this command fixed the problem:
sudo chown www-data .
Related Posts:
- How can I upgrade specific packages using pip and a requirements file?
- How to switch Python versions in Terminal?
- ‘NOT NULL constraint failed’ after adding to models.py
- django display message after POST form submit
- CommandError: You must set settings.ALLOWED_HOSTS if DEBUG is False
- “The path python3 (from –python=python3) does not exist” error
- How can I get the file name from request.FILES?
- Django – no such table exception
- Django TemplateDoesNotExist?
- Django – no such table exception
- Django: no such table: django_session
- Implementing a SOA in Django using celery
- Django 1.7 upgrade error: AppRegistryNotReady: Apps aren’t loaded yet
- Python/Django: log to console under runserver, log to file under Apache
- What is a NoReverseMatch error, and how do I fix it?
- sqlite3.OperationalError: unable to open database file
- python: can’t open file ‘manage.py’: [Errno 2] No such file or directory
- OperationalError: database is locked
- What is the use of PYTHONUNBUFFERED in docker file?
- Cannot find command ‘git’ – windows
- How to revert the last migration?
- Output Django queryset as JSON
- Getting stuck at Django error: No module named registration
- Django __str__ returned non-string (type NoneType)
- ow to ‘bulk update’ with Django?
- ‘pip’ is not recognized as an internal or external command
- File extension .DB – What kind of database is it exactly?
- Where does pip install its packages?
- Does Python have a toString() equivalent, and can I convert a class to String?
- Where does pip install its packages?
- django: TypeError: ‘tuple’ object is not callable
- Getting TypeError: __init__() missing 1 required positional argument: ‘on_delete’ when trying to add parent table after child table with entries
- How to use SQLite in Visual Studio 2017?
- Can’t fix “zipimport.ZipImportError: can’t decompress data; zlib not available” when I type in “python3.6 get-pip.py”
- No module named ‘psycopg2’
- Is #include
bad practice? - Getting TypeError: __init__() missing 1 required positional argument: ‘on_delete’ when trying to add parent table after child table with entries
- No module named MySQLdb
- No module named MySQLdb
- How to check Django version
- python3 is not recognized as an internal or external command, operable program or batch file showing for creating django runserver
- Django: ImproperlyConfigured: The SECRET_KEY setting must not be empty
- is not JSON serializable
- Where does Chrome keep the SQLite Database file it writes things like stored passwords to?
- Django: ImproperlyConfigured: The SECRET_KEY setting must not be empty
- Install mysql-python (Windows)
- Can’t connect to local MySQL server through socket ‘/tmp/mysql.sock
- django:django.core.exceptions.AppRegistryNotReady: Apps aren’t loaded yet
- No module named pkg_resources
- Django upgrading to 1.9 error “AppRegistryNotReady: Apps aren’t loaded yet.”
- Can’t compare naive and aware datetime.now() <= challenge.datetime_end
- How to open .SQLite files
- django import error – No module named core.management
- Forbidden (403) CSRF verification failed. Request aborted. Even using the {% csrf_token %}
- Django 2.1.3 Error: __init__() takes 1 positional argument but 2 were given
- Can’t connect to local MySQL server through socket ‘/tmp/mysql.sock
- Setting Django up to use MySQL
- SQLite – UPSERT *not* INSERT or REPLACE
- django:django.core.exceptions.AppRegistryNotReady: Apps aren’t loaded yet
- Is there an SQLite equivalent to MySQL’s DESCRIBE [table]?
- SQLiteDatabase.query method
- OSError – Errno 13 Permission denied
- React Error: Target Container is not a DOM Element
- Pylint “unresolved import” error in Visual Studio Code
- django MultiValueDictKeyError error, how do I deal with it
- Exit a SQLite 3 database
- Sqlite3, OperationalError: unable to open database file
- Print type of variable in python3.5 on django 1.8
- Is there a list of Pytz Timezones?
- sqlite3.ProgrammingError: Incorrect number of bindings supplied. The current statement uses 1, and there are 74 supplied
- Django – “no module named django.core.management”
- “Insert if not exists” statement in SQLite
- Error: “dictionary update sequence element #0 has length 1; 2 is required” on Django 1.4
- In Django, how do I know the currently logged-in user?
- NumPy array is not JSON serializable
- How can I add the sqlite3 module to Python?
- You are trying to add a non-nullable field ‘new_field’ to userprofile without a default
- pip install -r requirements.txt [Errno 2] No such file or directory: ‘requirements.txt’
- sqlite3 “foreign key constraint failed”
- Error: C2228: left of ” must have class/struct/union
- super(type, obj): obj must be an instance or subtype of type
- What is difference between SQLite and SQL
- java.lang.ClassNotFoundException: org.sqlite.JDBC error in Sample.java program from xerial
- Convert MySQL to SQlite [closed]
- Django Rest Framework — no module named rest_framework
- Error: “dictionary update sequence element #0 has length 1; 2 is required” on Django 1.4
- Python Django: You’re using the staticfiles app without having set the STATIC_ROOT setting
- TypeError: int() argument must be a string, a bytes-like object or a number, not ‘list’
- Django reverse lookup of foreign keys
- ImportError: No module named ‘django.core.urlresolvers’
- How to fix error “ERROR: Command errored out with exit status 1: python.” when trying to install django-heroku using pip
- How to set environment variables in PyCharm?
- H14 error in heroku – “no web processes running”
- What does this Django regular expression mean? `?P`
- Is it better to use path() or url() in urls.py for django 2.0?
- Uncaught Reference Error: stLight is not defined (in Chrome only)
- SQLite equivalent to ISNULL(), NVL(), IFNULL() or COALESCE()
- What is a “slug” in Django?
- TemplateDoesNotExist at /
- No module named django but it is installed