You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Readme points to some instructions for building pysqlite3, but that may not actually be necessary. The pysqlite3 project offers precompiled binaries, I was able to get things working through just pip install pysqlite3-binary.
pysqlite3 does not replace sqlite3 though and by default, it seems Django will still attempt to import the normal package. I had to add these lines to my settings.py to get it to work.
# these three lines swap the stdlib sqlite3 lib with the pysqlite3 package
__import__('pysqlite3')
import sys
sys.modules['sqlite3'] = sys.modules.pop('pysqlite3')
The text was updated successfully, but these errors were encountered:
The Readme points to some instructions for building pysqlite3, but that may not actually be necessary. The pysqlite3 project offers precompiled binaries, I was able to get things working through just
pip install pysqlite3-binary
.pysqlite3 does not replace sqlite3 though and by default, it seems Django will still attempt to import the normal package. I had to add these lines to my settings.py to get it to work.
The text was updated successfully, but these errors were encountered: