Created
December 2, 2023 05:11
-
-
Save raykipkorir/6c92704c6438434de1afe199929de4a1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# project/settings.py | |
import os | |
from pathlib import Path | |
from decouple import config | |
BASE_DIR = Path(__file__).resolve().parent.parent | |
DATABASES = { | |
"default": { | |
"ENGINE": config("SQL_ENGINE", "django.db.backends.sqlite3"), | |
"NAME": config("SQL_DATABASE_NAME", os.path.join(BASE_DIR, "db.sqlite3")), | |
"USER": config("SQL_USER", None), | |
"PASSWORD": config("SQL_PASSWORD", None), | |
"HOST": config("SQL_HOST", None), | |
"PORT": config("SQL_PORT", None), | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment