Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
IMI-Apps
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Trendy Dwi Anugrah
IMI-Apps
Commits
fa8f61d4
Commit
fa8f61d4
authored
Oct 28, 2026
by
gustixjerk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(settings): safely import pysqlite3 with fallback to built-in sqlite3
parent
da29d648
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
backend/config/settings.py
backend/config/settings.py
+6
-3
No files found.
backend/config/settings.py
View file @
fa8f61d4
...
@@ -11,10 +11,13 @@ berjalan di SQLite maupun PostgreSQL.
...
@@ -11,10 +11,13 @@ berjalan di SQLite maupun PostgreSQL.
# ---------------------------------------------------------------- sqlite3 patch
# ---------------------------------------------------------------- sqlite3 patch
# Mencegah error 'deterministic=True requires SQLite 3.8.3 or higher' di server Linux
# Mencegah error 'deterministic=True requires SQLite 3.8.3 or higher' di server Linux
import
sys
try
:
import
pysqlite3
import
sys
import
pysqlite3
sys
.
modules
[
"sqlite3"
]
=
sys
.
modules
.
pop
(
"pysqlite3"
)
sys
.
modules
[
"sqlite3"
]
=
sys
.
modules
.
pop
(
"pysqlite3"
)
except
ImportError
:
pass
import
os
import
os
from
datetime
import
timedelta
from
datetime
import
timedelta
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment