micro_service_placeholder/microService/backend/settings/local.py

31 lines
567 B
Python

from .base import *
import os
from dotenv import load_dotenv
load_dotenv(override=True)
USER = os.getenv("USER")
HOST = os.getenv("HOST")
PORT = os.getenv("PORT")
DB = os.getenv("DB")
PASS = os.getenv("PASS")
DEBUG = True
ALLOWED_HOSTS = ["*"]
CORS_ALLOWED_ORIGINS = [
"http://localhost:3000",
"http://127.0.0.1:3000"
]
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql',
'NAME': DB,
'USER': USER,
'PASSWORD': PASS,
'HOST': HOST,
'PORT':PORT,
}
}
BASE_URL = os.getenv("BASE_URL")