added dockerfile, requirements.txt, docker-compose.yml
This commit is contained in:
parent
7f28fe580d
commit
456551cd4e
24 changed files with 58 additions and 7 deletions
|
|
@ -78,13 +78,17 @@ WSGI_APPLICATION = 'testapi.wsgi.application'
|
|||
# https://docs.djangoproject.com/en/5.1/ref/settings/#databases
|
||||
|
||||
DATABASES = {
|
||||
# 'default': {
|
||||
# 'ENGINE': 'django.db.backends.postgresql',
|
||||
# 'NAME': 'drfapi', # Your database name
|
||||
# 'USER': 'postgres', # Your PostgreSQL username
|
||||
# 'PASSWORD': '1235', # Your PostgreSQL password
|
||||
# 'HOST': 'localhost', # Or your DB server's IP
|
||||
# 'PORT': '5432', # Default PostgreSQL port
|
||||
# }
|
||||
'default': {
|
||||
'ENGINE': 'django.db.backends.postgresql',
|
||||
'NAME': 'drfapi', # Your database name
|
||||
'USER': 'postgres', # Your PostgreSQL username
|
||||
'PASSWORD': '1235', # Your PostgreSQL password
|
||||
'HOST': 'localhost', # Or your DB server's IP
|
||||
'PORT': '5432', # Default PostgreSQL port
|
||||
'ENGINE': 'django.db.backends.sqlite3',
|
||||
'NAME': BASE_DIR / 'db.sqlite3',
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue