Skip to content
This repository has been archived by the owner on Nov 21, 2024. It is now read-only.

Commit

Permalink
update lockfile and prod config
Browse files Browse the repository at this point in the history
  • Loading branch information
MJedr committed Oct 20, 2023
1 parent cd9513d commit 798e9b4
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 7 deletions.
4 changes: 4 additions & 0 deletions config/settings/production.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import logging

import dj_database_url
import sentry_sdk
from sentry_sdk.integrations.celery import CeleryIntegration
from sentry_sdk.integrations.django import DjangoIntegration
Expand All @@ -20,6 +21,9 @@
# ------------------------------------------------------------------------------
DATABASES["default"]["CONN_MAX_AGE"] = env.int("CONN_MAX_AGE", default=60) # noqa: F405

if env("POSTGRES_URI"):
DATABASES = {"default": dj_database_url.config(default=env("POSTGRES_URI"))}

# CACHES
# ------------------------------------------------------------------------------
CACHES = {
Expand Down
29 changes: 22 additions & 7 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ Collectfast = "2.2.0"
sentry-sdk = "1.31.0"
django-storages = {version = "1.14.2", extras = ["s3"]}
django-anymail = "10.1"
dj-database-url = "^2.1.0"

[tool.poetry.dev-dependencies]
factory-boy = "3.3.0"
Expand Down

0 comments on commit 798e9b4

Please sign in to comment.