From 5f05ded8534da77280e5f1430f7a9768c7672ee9 Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Tue, 31 Oct 2023 10:29:55 -0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=9A=20import=20new=20sqlite?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- continue_server.py | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/continue_server.py b/continue_server.py index 2528ce330..1f6c228b2 100644 --- a/continue_server.py +++ b/continue_server.py @@ -3,16 +3,9 @@ import sys from server.main import main -# __import__('pysqlite3') -# import sys -# sys.modules['sqlite3'] = sys.modules.pop('pysqlite3') - -# DATABASES = { -# 'default': { -# 'ENGINE': 'django.db.backends.sqlite3', -# 'NAME': os.path.join(BASE_DIR, 'db.sqlite3'), -# } -# } +__import__('pysqlite3') +import sys +sys.modules['sqlite3'] = sys.modules.pop('pysqlite3') if getattr(sys, "frozen", False) and hasattr(sys, "_MEIPASS"): ca_bundle_path = os.path.join(sys._MEIPASS, "ca_bundle", "cacert.pem")