Skip to content

Commit

Permalink
use specific module imports in settings.py
Browse files Browse the repository at this point in the history
  • Loading branch information
dragonejt committed Jun 21, 2024
1 parent d4edd22 commit a843874
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions sibyl/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
from os import getenv
from pathlib import Path
from django.core.management.utils import get_random_secret_key
import dj_database_url
import sentry_sdk
from dj_database_url import parse as parse_db_url
from sentry_sdk import init as sentry_init

# Build paths inside the project like this: BASE_DIR / 'subdir'.
BASE_DIR = Path(__file__).resolve().parent.parent
Expand Down Expand Up @@ -85,7 +85,7 @@

DATABASES = {
"default": (
dj_database_url.parse(getenv("DATABASE_URL"))
parse_db_url(getenv("DATABASE_URL"))
if getenv("DATABASE_URL") is not None
else {
"ENGINE": "django.db.backends.sqlite3",
Expand Down Expand Up @@ -160,7 +160,7 @@
SECURE_HSTS_PRELOAD = not DEBUG

# Sentry
sentry_sdk.init(
sentry_init(
dsn="https://5db3e0ba1c5afa81a69054606357b5c1@o4507124907638784.ingest.us.sentry.io/4507124912357376",
# Set traces_sample_rate to 1.0 to capture 100%
# of transactions for performance monitoring.
Expand Down

0 comments on commit a843874

Please sign in to comment.