Merge branch 'dockerfile'
This commit is contained in:
@@ -11,6 +11,7 @@ https://docs.djangoproject.com/en/5.2/ref/settings/
|
||||
"""
|
||||
|
||||
from pathlib import Path
|
||||
import os
|
||||
|
||||
# Build paths inside the project like this: BASE_DIR / 'subdir'.
|
||||
BASE_DIR = Path(__file__).resolve().parent.parent
|
||||
@@ -20,12 +21,12 @@ BASE_DIR = Path(__file__).resolve().parent.parent
|
||||
# See https://docs.djangoproject.com/en/5.2/howto/deployment/checklist/
|
||||
|
||||
# SECURITY WARNING: keep the secret key used in production secret!
|
||||
SECRET_KEY = "django-insecure-7@a)l@%smekjdwtc%$)k=qs^5k8@fnmc+vxk)(!mi5ojrbhgn+"
|
||||
SECRET_KEY = os.getenv("DJANGO_SECRET_KEY")
|
||||
|
||||
# SECURITY WARNING: don't run with debug turned on in production!
|
||||
DEBUG = True
|
||||
|
||||
ALLOWED_HOSTS = []
|
||||
ALLOWED_HOSTS = ["localhost"]
|
||||
|
||||
|
||||
# Application definition
|
||||
@@ -78,11 +79,11 @@ WSGI_APPLICATION = "mysite.wsgi.application"
|
||||
DATABASES = {
|
||||
"default": {
|
||||
"ENGINE": "django.db.backends.postgresql",
|
||||
"OPTIONS": {
|
||||
"service": "my_service",
|
||||
"passfile": ".pgpass",
|
||||
},
|
||||
"PASSWORD":"example",
|
||||
'NAME': os.getenv('DATABASE_NAME', 'sa'),
|
||||
'USER': os.getenv('DATABASE_USERNAME', 'sa'),
|
||||
"PASSWORD": os.getenv('DATABASE_PASSWORD', "example"),
|
||||
'HOST': os.getenv('DATABASE_HOST', 'db'),
|
||||
'PORT': os.getenv('DATABASE_PORT', 5432),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user