Skip to content
Open
Show file tree
Hide file tree
Changes from 3 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
29 changes: 29 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Database credentials
DB_NAME=name # Look for "database" or "schema"
DB_USER=user
DB_PASSWORD=password
DB_HOST=hostname
DB_PORT=port

# Email server configuration with AWS SES, can be left blank if not sending emails
AWS_SES_ACCESS_KEY_ID=access_key_id
AWS_SES_SECRET_ACCESS_KEY=secret_access_key
AWS_SES_REGION_NAME=region_name
AWS_SES_REGION_ENDPOINT=region_endpoint
DEFAULT_FROM_EMAIL=email

# The URL of the site, used for generating links
BASE_URL=url

# The folder where logs will be stored
LOG_DIR=filepath

# Comma-separated list of admin email addresses in case anything goes wrong
ADMIN_EMAILS=email,email

# Whether to actually send emails
# If false, the important content from the emails will be logged
SEND_EMAILS=False

# Enable debug mode, important to have this false in production for security
DEBUG=True
2 changes: 1 addition & 1 deletion api/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/5.2/howto/deployment/checklist/

SECRET_KEY = env("SECRET_KEY")
SECRET_KEY = env("SECRET_KEY", default="secret-key")

DEBUG = env.bool("DEBUG", default=False)

Expand Down
15 changes: 0 additions & 15 deletions example.env

This file was deleted.

Loading