This page is the authoritative list of environment values read by the application. Values already exported by systemd or the shell win over the .env file.
ReferenceEnvironmentProductionReviewed November 2026
Core
Variable
Default / requirement
Notes
DJANGO_SECRET_KEY
Required in production
50+ characters, 5+ unique, no development prefix.
DJANGO_DEBUG
1 local, forced false in production
Never enable on the VPS.
DJANGO_ALLOWED_HOSTS
Canonical hosts
Comma-separated. Include www and optional short host.
DJANGO_CSRF_TRUSTED_ORIGINS
Canonical HTTPS origins
Comma-separated full origins.
SITE_URL
Production must be https
Used in email and affiliate links.
SETUP_ENABLED
0
Browser setup wizard. Use the CLI or enable briefly for first run.
SHORTLINK_DOMAIN
Blank
Optional subdomain of the site host.
ORDER_PREFIX
PFZ
Order number prefix.
PAYMENT_PROVIDER
cod
stripe, flutterwave, paypal or cod.
Database
Variable
Notes
DB_ENGINE
postgresql on the VPS; sqlite for local production checks.
Use the instance/task role instead of static keys.
AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY
Static credentials when an IAM role is not used.
AWS_STORAGE_BUCKET_NAME, AWS_S3_REGION_NAME
Bucket and region.
AWS_S3_CUSTOM_DOMAIN
Optional CDN/custom domain; defaults to CloudFront when configured.
CLOUDFRONT_DOMAIN, CLOUDFRONT_DISTRIBUTION_ID
CloudFront delivery host and invalidation distribution.
CLOUDFRONT_KEY_ID, CLOUDFRONT_PRIVATE_KEY_PATH
Optional CloudFront signing key pair for signed public delivery; a literal CLOUDFRONT_PRIVATE_KEY is also accepted.
CLOUDFRONT_SIGNED_URLS, CLOUDFRONT_EXPIRATION
Enable signed delivery and set its lifetime.
Operations
Variable
Notes
RATE_LIMITING_ENABLED
Keep 1 in production.
BACKUP_S3_BUCKET
Private backup bucket; required for create_backup. No local fallback.
BACKUP_S3_PREFIX, BACKUP_S3_REGION
Backup object prefix and region.
BACKUP_S3_SSE, BACKUP_S3_KMS_KEY_ID
Server-side encryption algorithm and optional KMS key.
BACKUP_KEEP
Number of backup sets retained in S3, default 14.
DJANGO_EMAIL_TIMEOUT
SMTP timeout, default 20 seconds.
Values not listed here are derived, internal or documented on the integration page that owns them. The production template is deploy/env.production.example.