This repository has been archived on 2025-11-04. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
csmb-housewars/CollegiateHouseWars/settings/prod.py

38 lines
1,009 B
Python

import os
from .defaults import *
# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = os.environ.get('SECRET_KEY')
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = False
ALLOWED_HOSTS = [
'45.79.52.230',
'housewars.c4thebomb101.com',
'collegiate-housewars.herokuapp.com',
'collegiate-housewars.up.railway.app'
]
CSRF_TRUSTED_ORIGINS = [
'https://housewars.c4thebomb101.com',
'https://collegiate-housewars.herokuapp.com',
'https://collegiate-housewars.up.railway.app'
]
# Database
# https://docs.djangoproject.com/en/4.0/ref/settings/#databases
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'NAME': 'housewars',
'USER': os.environ.get('DATABASE_USERNAME'),
'PASSWORD': os.environ.get('DATABASE_PASSWORD'),
'HOST': os.environ.get('DATABASE_HOST'),
'PORT': '3306'
}
}
STATICFILES_STORAGE = "whitenoise.storage.CompressedManifestStaticFilesStorage"