update
This commit is contained in:
parent
870988424b
commit
e4b6a359ea
3
.env
Normal file
3
.env
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
DB_NAME=norahuniversity
|
||||||
|
DB_USER=norahuniversity
|
||||||
|
DB_PASSWORD=norahuniversity
|
||||||
Binary file not shown.
Binary file not shown.
@ -12,7 +12,9 @@ https://docs.djangoproject.com/en/5.2/ref/settings/
|
|||||||
import os
|
import os
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from django.templatetags.static import static
|
from django.templatetags.static import static
|
||||||
|
from dotenv import load_dotenv
|
||||||
|
|
||||||
|
load_dotenv()
|
||||||
# Build paths inside the project like this: BASE_DIR / 'subdir'.
|
# Build paths inside the project like this: BASE_DIR / 'subdir'.
|
||||||
BASE_DIR = Path(__file__).resolve().parent.parent
|
BASE_DIR = Path(__file__).resolve().parent.parent
|
||||||
|
|
||||||
@ -135,9 +137,9 @@ WSGI_APPLICATION = 'NorahUniversity.wsgi.application'
|
|||||||
DATABASES = {
|
DATABASES = {
|
||||||
'default': {
|
'default': {
|
||||||
'ENGINE': 'django.db.backends.postgresql_psycopg2',
|
'ENGINE': 'django.db.backends.postgresql_psycopg2',
|
||||||
'NAME': 'haikal_db',
|
'NAME': os.getenv("DB_NAME"),
|
||||||
'USER': 'faheed',
|
'USER': os.getenv("DB_USER"),
|
||||||
'PASSWORD': 'Faheed@215',
|
'PASSWORD': os.getenv("DB_PASSWORD"),
|
||||||
'HOST': '127.0.0.1',
|
'HOST': '127.0.0.1',
|
||||||
'PORT': '5432',
|
'PORT': '5432',
|
||||||
}
|
}
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user