Refactor database connection to use settings and improve test isolation with temporary DB
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
# app/settings.py
|
||||
|
||||
import os
|
||||
|
||||
# Example configuration
|
||||
database_url = os.getenv("DATABASE_URL", "sqlite:///default.db")
|
||||
debug = os.getenv("DEBUG", "True") == "True"
|
||||
Reference in New Issue
Block a user