Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 9 additions & 5 deletions config/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,17 @@

import os
from pathlib import Path
import environ

import sentry_sdk
from sentry_sdk.integrations.django import DjangoIntegration

# Build paths inside the project like this: BASE_DIR / 'subdir'.
BASE_DIR = Path(__file__).resolve().parent.parent

# Environ variable reader
env = environ.Env()
environ.Env.read_env(str(BASE_DIR / ".env.example"))

# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/4.0/howto/deployment/checklist/
Expand Down Expand Up @@ -87,11 +91,11 @@
DATABASES = {
"default": {
"ENGINE": "django.db.backends.postgresql_psycopg2",
"NAME": "your-db-name",
"USER": "your-db-user",
"PASSWORD": "your-db-user-password",
"HOST": "your-db-host",
"PORT": "your-db-port",
"NAME": env("DB_NAME"),
"USER": env("DB_USERNAME"),
"PASSWORD": env("DB_PASSWORD"),
"HOST": env("DB_HOST"),
"PORT": env("DB_PORT"),
}
}

Expand Down
1 change: 1 addition & 0 deletions requirements/common.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ Django
djangorestframework
django-cors-headers
django-filter
django-environ
django-storages
psycopg2-binary==2.9.9
Pillow
Expand Down