I'm trying to create a Django app from a legacy PostgreSQL database I brought over from my Webfaction account a few years ago. When I run the python manage.py inspectdb
command I get the following error:
django.db.utils.NotSupportedError: deterministic=True requires SQLite 3.8.3 or higher
First off, I'm confused because my settings.py file has the legacy db setup as the default db. But, figuring there may still be some requirement for an SQLite db, I ran sqlite3 --version
and got this response:
SQLite header and source version mismatch
2019-10-10 20:19:45 18db032d058f1436ce3dea84081f4ee5a0f2259ad97301d43c426bc7f3dfalt1
2013-05-20 00:56:22 118a3b35693b134d56ebd780123b7fd6f1497668
Going into the shell I was able to run this:
import sqlite3
>sqlite3.sqlite_version
>'3.30.1'
After looking at this thread, I checked the workaround at Using Databases with Django - SQLite, but couldn't install psyqlite3-binary, got:
ERROR: Could not find a version that satisfies the requirement pysqlite3-binary (from versions: none)
ERROR: No matching distribution found for pysqlite3-binary
So, I'm at a loss with how to proceed.