core/settings.py
Untone 8d06f59702
Some checks failed
Deploy to core / deploy (push) Failing after 6s
port-fix
2024-02-21 23:14:06 +03:00

18 lines
607 B
Python

import sys
from os import environ
PORT = 8000
DB_URL = (
environ.get('DATABASE_URL', '').replace('postgres://', 'postgresql://')
or environ.get('DB_URL', '').replace('postgres://', 'postgresql://')
or 'postgresql://postgres@localhost:5432/discoursio'
)
REDIS_URL = environ.get('REDIS_URL') or 'redis://127.0.0.1'
API_BASE = environ.get('API_BASE') or ''
AUTH_URL = environ.get('AUTH_URL') or ''
SENTRY_DSN = environ.get('SENTRY_DSN')
DEV_SERVER_PID_FILE_NAME = 'dev-server.pid'
MODE = 'development' if 'dev' in sys.argv else 'production'
ADMIN_SECRET = environ.get('AUTH_SECRET') or 'nothing'