Skip to content

Commit

Permalink
Connected Postgresql db
Browse files Browse the repository at this point in the history
  • Loading branch information
Aarushsr12 committed Jul 5, 2024
1 parent d2ea6d6 commit 575f489
Show file tree
Hide file tree
Showing 11 changed files with 9 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
## Chat Room App to create rooms & initiate discussions, Django based solution for the devs to collaborate
Binary file modified base/__pycache__/__init__.cpython-312.pyc
Binary file not shown.
Binary file modified base/__pycache__/admin.cpython-312.pyc
Binary file not shown.
Binary file modified base/__pycache__/apps.cpython-312.pyc
Binary file not shown.
Binary file modified base/__pycache__/models.cpython-312.pyc
Binary file not shown.
Binary file modified base/__pycache__/urls.cpython-312.pyc
Binary file not shown.
Binary file modified base/__pycache__/views.cpython-312.pyc
Binary file not shown.
Binary file modified base/migrations/__pycache__/__init__.cpython-312.pyc
Binary file not shown.
Binary file modified studybud/__pycache__/settings.cpython-312.pyc
Binary file not shown.
Binary file modified studybud/__pycache__/urls.cpython-312.pyc
Binary file not shown.
10 changes: 8 additions & 2 deletions studybud/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,16 @@
# Database
# https://docs.djangoproject.com/en/4.2/ref/settings/#databases

# POSTGRES DATABASE CONNECTION SETUP
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': BASE_DIR / 'db.sqlite3',
#'ENGINE': 'django.db.backends.sqlite3',
'ENGINE': 'django.db.backends.postgresql',
'NAME': 'postgres',
'USER': 'postgres',
'PASSWORD': 'postgres',
'HOST': 'localhost',
'PORT': '5432',
}
}

Expand Down

0 comments on commit 575f489

Please sign in to comment.