Load settings from .env file.

This commit is contained in:
krek0 2026-04-24 21:42:23 +02:00
parent f221740228
commit 3efa217716
4 changed files with 31 additions and 13 deletions

16
.env.example Normal file
View file

@ -0,0 +1,16 @@
# Copy this file to .env and fill in the values
# .env is gitignored and must never be committed
SECRET_KEY=change-me-to-a-long-random-string
# Set to True only for development
DEBUG=False
# Comma-separated list of additional allowed hosts (beyond 127.0.0.1 and localhost)
EXTRA_HOSTS=photos.crans.org,photos-dev.crans.org
# Comma-separated list of admins in "Name:email" format
ADMINS=admin:photos-admin@lists.crans.org
# Email address used as sender for server emails
SERVER_EMAIL=photos@crans.org