From 28cda9772e0940a26580fdd693f8163128780ec1 Mon Sep 17 00:00:00 2001 From: Parsa Nazer Date: Wed, 25 Dec 2024 23:04:56 +0330 Subject: [PATCH] update settings --- backend/.env.local | 14 +++++++------- backend/core/settings.py | 1 - 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/backend/.env.local b/backend/.env.local index 9e28739..a122dfd 100644 --- a/backend/.env.local +++ b/backend/.env.local @@ -2,11 +2,11 @@ DEBUG = True # keep debug true to set the database to sqlite # postgres database info -DB_NAME = '' -DB_USER = '' -DB_PASSWORD = '' -DB_HOST = '' -DB_PORT = '' +DB_NAME = 'hshop' +DB_USER = 'byeto' +DB_PASSWORD = 'vuhbyq-cypMu0-sirbon' +DB_HOST = 'db' +DB_PORT = '5434' SECRET_KEY = '2h&gmi54wqauwqht48l-9c)r6_67_(oe_$ll%(+xz%u#)+of@d' # email stuff EMAIL_BACKEND = '' @@ -17,9 +17,9 @@ DEFAULT_FROM_EMAIL = '' # telegram bot toekn TELEGRAM_BOT_TOKEN = '' # domain for allowed host and allowed cors -DOMAIN = '' +DOMAIN = '38.60.202.91' # domain for api (the domain that django will use) -API_DOMAIN = '' +API_DOMAIN = '38.60.202.91' SITE_TITLE = '' SITE_HEADER = '' # jwt token configs diff --git a/backend/core/settings.py b/backend/core/settings.py index 91d8741..6299e53 100644 --- a/backend/core/settings.py +++ b/backend/core/settings.py @@ -41,7 +41,6 @@ if not DEBUG: ] CORS_ALLOWED_ORIGINS = [f"https://{API_DOMAIN}", f"http://{API_DOMAIN}", f"http://{DOMAIN}", f"https://{DOMAIN}", ] - # database postgres DATABASES = { 'default': {