Skip to content

Commit

Permalink
riders to rider
Browse files Browse the repository at this point in the history
  • Loading branch information
himanshu pandey committed Jan 9, 2024
1 parent b583c4d commit beb9a3c
Show file tree
Hide file tree
Showing 25 changed files with 24 additions and 6 deletions.
1 change: 1 addition & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
DB_PASSWORD=qCvIyq1YvlMx8rjXsqN0
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# Auto detect text files and perform LF normalization
* text=auto
.env
Binary file modified blog/__pycache__/__init__.cpython-37.pyc
Binary file not shown.
Binary file modified blog/__pycache__/admin.cpython-37.pyc
Binary file not shown.
Binary file modified blog/__pycache__/models.cpython-37.pyc
Binary file not shown.
Binary file modified blog/__pycache__/urls.cpython-37.pyc
Binary file not shown.
Binary file modified blog/__pycache__/urs.cpython-37.pyc
Binary file not shown.
Binary file modified blog/__pycache__/views.cpython-37.pyc
Binary file not shown.
Binary file modified blog/migrations/__pycache__/0001_initial.cpython-37.pyc
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 modified blog/migrations/__pycache__/0007_submitform_ck.cpython-37.pyc
Binary file not shown.
Binary file modified blog/migrations/__pycache__/0008_topposts_ck.cpython-37.pyc
Binary file not shown.
Binary file modified blog/migrations/__pycache__/0009_auto_20230928_2126.cpython-37.pyc
Binary file not shown.
Binary file modified blog/migrations/__pycache__/__init__.cpython-37.pyc
Binary file not shown.
Binary file modified blognet/__pycache__/__init__.cpython-37.pyc
Binary file not shown.
Binary file modified blognet/__pycache__/settings.cpython-37.pyc
Binary file not shown.
Binary file modified blognet/__pycache__/urls.cpython-37.pyc
Binary file not shown.
Binary file modified blognet/__pycache__/wsgi.cpython-37.pyc
Binary file not shown.
28 changes: 22 additions & 6 deletions blognet/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,18 +86,34 @@
# }


# DATABASES = {
# 'default': {
# 'ENGINE': 'django.db.backends.postgresql',
# 'NAME': 'railway',
# 'USER':'postgres',
# 'PASSWORD':'qCvIyq1YvlMx8rjXsqN0',
# 'HOST':'containers-us-west-121.railway.app',
# 'PORT':'6463',
# }
# }

import os
from dotenv import load_dotenv

# Load environment variables from .env file
load_dotenv()

DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql',
'NAME': 'railway',
'USER':'postgres',
'PASSWORD':'qCvIyq1YvlMx8rjXsqN0',
'HOST':'containers-us-west-121.railway.app',
'PORT':'6463',
'USER': 'postgres',
'PASSWORD': os.getenv('DB_PASSWORD'),
'HOST': 'containers-us-west-121.railway.app',
'PORT': '6463',
}
}


# DATABASES = {
# 'default': {
# 'ENGINE': 'django.db.backends.postgresql',
Expand Down Expand Up @@ -154,7 +170,7 @@
os.path.join(BASE_DIR,'static'),
]
STATIC_ROOT = BASE_DIR / 'staticfiles'
STATICFILES_STORAGE = 'whitenoise.storage.CompressedManifestStaticFilesStorage'
# STATICFILES_STORAGE = 'whitenoise.storage.CompressedManifestStaticFilesStorage'
APPEND_SLASH=True

# MEDIA_ROOT='blognet/blog/static/image'
Expand Down
Binary file removed db.sqlite3
Binary file not shown.
Binary file modified requirements.txt
Binary file not shown.

0 comments on commit beb9a3c

Please sign in to comment.