💚 import new sqlite
This commit is contained in:
parent
10f3eb65ee
commit
5f05ded853
1 changed files with 3 additions and 10 deletions
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue