Skip to content

Commit

Permalink
update setting.py
Browse files Browse the repository at this point in the history
  • Loading branch information
shyanukant committed Jul 29, 2023
1 parent f3e8dc1 commit 4f9ca55
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions squib/squib/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
import os
import dotenv
from pathlib import Path
import dj_database_url

# Build paths inside the project like this: BASE_DIR / 'subdir'.
BASE_DIR = Path(__file__).resolve().parent.parent
Expand Down Expand Up @@ -106,10 +107,11 @@
# https://docs.djangoproject.com/en/4.2/ref/settings/#databases

DATABASES = {
"default": {
"ENGINE": "django.db.backends.sqlite3",
"NAME": BASE_DIR / "db.sqlite3",
}
"default": dj_database_url.config(default=os.environ.get('DATABASE_URL'))
# {
# "ENGINE": "django.db.backends.sqlite3",
# "NAME": BASE_DIR / "db.sqlite3",
# }
}


Expand Down

0 comments on commit 4f9ca55

Please sign in to comment.