forked from Hostea/dashboard
fix: import vars defined in local_settings.py
fixes https://gitea.hostea.org/Hostea/dashboard/issues/5wip-site
parent
3378e61606
commit
4542389df8
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue