ITRadio/server/proj/conf/settings/production.py

26 lines
648 B
Python

import sys
from .base import *
DEBUG = False
ALLOWED_HOSTS = ['82.97.242.49', 'itradio.team']
# Database
# https://docs.djangoproject.com/en/3.2/ref/settings/#databases
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'NAME': 'itradio',
'USER': 'postgres',
'PASSWORD': '55667788Vxod',
'HOST': 'localhost',
'PORT': '5432',
},
}
REST_FRAMEWORK['DEFAULT_PERMISSION_CLASSES'] = ('rest_framework.permissions.AllowAny',)
if len(sys.argv) >= 2 and sys.argv[1] != 'runserver':
from conf.sentry import sentry_start, SENTRY_CONFIG
sentry_start(SENTRY_CONFIG)