Skip to content

Instantly share code, notes, and snippets.

View defulmere's full-sized avatar

Sean Fulmer defulmere

View GitHub Profile
@defulmere
defulmere / settings.py
Last active May 15, 2025 03:27
How to override an old sqlite3 module with pysqlite3 in django settings.py
# ⚠️ USE AT YOUR OWN RISK
# first: pip install pysqlite3-binary
# then in settings.py:
# these three lines swap the stdlib sqlite3 lib with the pysqlite3 package
__import__('pysqlite3')
import sys
sys.modules['sqlite3'] = sys.modules.pop('pysqlite3')
DATABASES = {

Keybase proof

I hereby claim:

  • I am defulmere on github.
  • I am defulmere (https://keybase.io/defulmere) on keybase.
  • I have a public key ASBZZcxbuMCre_b7oVVQdOToz5KHlPd_bdHCFK-QKHRa_Ao

To claim this, I am signing this object: