mirror of
https://github.com/nprasad2077/nbaStats.git
synced 2026-11-14 05:43:47 +00:00
working on data verification
This commit is contained in:
1 parent
097b8ab480
commit
c5cac6799e
9 files changed
+205
-75
No files matched your search
+14
-2
@@ -11,6 +11,14 @@ https://docs.djangoproject.com/en/4.2/ref/settings/
|
||||
"""
|
||||
|
||||
from pathlib import Path
|
||||
from dotenv import load_dotenv
|
||||
load_dotenv()
|
||||
import os
|
||||
|
||||
db_user = os.getenv('DB_USER')
|
||||
db_pass = os.getenv('DB_PASS')
|
||||
|
||||
|
||||
|
||||
# Build paths inside the project like this: BASE_DIR / 'subdir'.
|
||||
BASE_DIR = Path(__file__).resolve().parent.parent
|
||||
@@ -76,8 +84,12 @@ WSGI_APPLICATION = 'nba_stats.wsgi.application'
|
||||
|
||||
DATABASES = {
|
||||
'default': {
|
||||
'ENGINE': 'django.db.backends.sqlite3',
|
||||
'NAME': BASE_DIR / 'db.sqlite3',
|
||||
'ENGINE': 'django.db.backends.postgresql',
|
||||
'NAME': 'nba_stats',
|
||||
'USER': db_user,
|
||||
'PASSWORD': db_pass,
|
||||
'HOST': 'localhost',
|
||||
'PORT': '',
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user