fix: import vars defined in local_settings.py
ci/woodpecker/push/woodpecker Pipeline failed Details

fixes https://gitea.hostea.org/Hostea/dashboard/issues/5
wip-infra-tests
Aravinth Manivannan 2022-06-26 03:53:09 +05:30
parent 3378e61606
commit 4542389df8
Signed by: realaravinth
GPG Key ID: AD9F0F08E855ED88
1 changed files with 3 additions and 3 deletions

View File

@ -11,6 +11,7 @@ https://docs.djangoproject.com/en/4.0/ref/settings/
"""
from pathlib import Path
# Build paths inside the project like this: BASE_DIR / 'subdir'.
BASE_DIR = Path(__file__).resolve().parent.parent
@ -83,7 +84,7 @@ WSGI_APPLICATION = "dashboard.wsgi.application"
DATABASES = {
"default": {
"ENGINE": "django.db.backends.postgresql",
"NAME": "postgres",
"NAME": "db-doesn't-exist",
"USER": "postgres",
"PASSWORD": "password",
"HOST": "localhost",
@ -201,9 +202,8 @@ EMAIL_PORT = 10025
EMAIL_HOST_USER = "admin"
EMAIL_HOST_PASSWORD = "password"
try:
import dashboard.local_settings
from dashboard.local_settings import *
print("Found local_settings")
except ModuleNotFoundError: