updating DB
This commit is contained in:
parent
c36e52d4fc
commit
29da461a53
2 changed files with 10 additions and 3 deletions
|
|
@ -11,6 +11,7 @@ https://docs.djangoproject.com/en/6.0/ref/settings/
|
|||
"""
|
||||
|
||||
from pathlib import Path
|
||||
from config import DB_NAME, DB_USER, DB_HOST, DB_PASSWORD, DB_PORT, SECRET_KEY
|
||||
|
||||
# Build paths inside the project like this: BASE_DIR / 'subdir'.
|
||||
BASE_DIR = Path(__file__).resolve().parent.parent
|
||||
|
|
@ -20,7 +21,7 @@ BASE_DIR = Path(__file__).resolve().parent.parent
|
|||
# See https://docs.djangoproject.com/en/6.0/howto/deployment/checklist/
|
||||
|
||||
# SECURITY WARNING: keep the secret key used in production secret!
|
||||
SECRET_KEY = "django-insecure-pek1teheggj8zzvtcntp4-u#s_^yc$&a@3f7wi+u%8)g*2xezw"
|
||||
SECRET_KEY = SECRET_KEY
|
||||
|
||||
# SECURITY WARNING: don't run with debug turned on in production!
|
||||
DEBUG = True
|
||||
|
|
@ -77,8 +78,12 @@ WSGI_APPLICATION = "localist.wsgi.application"
|
|||
|
||||
DATABASES = {
|
||||
"default": {
|
||||
"ENGINE": "django.db.backends.sqlite3",
|
||||
"NAME": BASE_DIR / "db.sqlite3",
|
||||
"ENGINE": "django.db.backends.postgresql",
|
||||
"NAME": DB_NAME,
|
||||
"USER": DB_USER,
|
||||
"PASSWORD": DB_PASSWORD,
|
||||
"HOST": DB_HOST,
|
||||
"PORT": DB_PORT
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -5,6 +5,8 @@ Django==6.0.6
|
|||
django-rest-framework==0.1.0
|
||||
djangorestframework==3.17.1
|
||||
idna==3.18
|
||||
psycopg==3.3.4
|
||||
psycopg-binary==3.3.4
|
||||
requests==2.34.2
|
||||
sqlparse==0.5.5
|
||||
urllib3==2.7.0
|
||||
|
|
|
|||
Loading…
Reference in a new issue