This commit is contained in:
anhduy-tech
2026-02-10 10:14:23 +07:00
parent 41a51c65f1
commit 63e5d71ca2
8 changed files with 326 additions and 75 deletions

View File

@@ -21,7 +21,7 @@ BASE_DIR = Path(__file__).resolve().parent.parent
SECRET_KEY = 'django-insecure-_u202k$8qq2p*cr_eo(7k!0ngr5^n)27@85+5oy8&41(u6&j54'
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
DEBUG = False
ALLOWED_HOSTS = ['*']
@@ -81,8 +81,8 @@ ASGI_APPLICATION = 'api.asgi.application'
# https://docs.djangoproject.com/en/4.1/ref/settings/#databases
#prod:5.223.52.193 dev:5.223.42.146
MODE = 'dev'
DBHOST = '172.17.0.1' if MODE == 'prod' else '5.223.42.146'
MODE = 'prod'
DBHOST = '172.17.0.1' if MODE == 'prod' else '5.223.52.193'
DATABASES = {
'default': {