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?
- Where does pip install its packages?
- 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
- Django: ImproperlyConfigured: The SECRET_KEY setting must not be empty
- 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
- Can’t connect to local MySQL server through socket ‘/tmp/mysql.sock
- django:django.core.exceptions.AppRegistryNotReady: Apps aren’t loaded yet
- Django upgrading to 1.9 error “AppRegistryNotReady: Apps aren’t loaded yet.”
- How to open .SQLite files
- 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
- 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
- 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
- “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’
- 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]
- Error: “dictionary update sequence element #0 has length 1; 2 is required” on Django 1.4
- 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()
- No module named django but it is installed
- What is the easiest way to clear a database from the CLI with manage.py in Django?
- What does on_delete do on Django models?
- Check if an object exists
- How do I unlock a SQLite database?
- How to check if a user is logged in (how to properly use user.is_authenticated)?
- The view didn’t return an HttpResponse object. It returned None instead
- gunicorn.errors.HaltServer:
django - How to get a list of column names on Sqlite3 database?
- coercing to Unicode: need string or buffer, NoneType found when rendering in django admin
- Creating stored procedure and SQLite?
- coercing to Unicode: need string or buffer, NoneType found when rendering in django admin
- SQLITE, Create a temp table then select from it
- Error loading MySQLdb module: No module named ‘MySQLdb’
- Sqlite: CURRENT_TIMESTAMP is in GMT, not the timezone of the machine
- What is related_name used for?
- Line is too long. Django PEP8
- __init__() got an unexpected keyword argument ‘user’
- Why do I need Nginx and something like Gunicorn?