Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion Pipfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
[[source]]
url = "https://pypi.org/simple"
url = "https://pypi.python.org/simple"
verify_ssl = true
name = "pypi"

[packages]
asgiref = "*"
"backports.zoneinfo" = "*"
django = "*"
sqlparse = "*"
gunicorn = "*"
psycopg2 = "*"
whitenoise = "*"

[dev-packages]

Expand Down
67 changes: 0 additions & 67 deletions Pipfile.lock

This file was deleted.

1 change: 1 addition & 0 deletions Procfile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
web: gunicorn locallibrary.wsgi --log-file -
18 changes: 11 additions & 7 deletions locallibrary/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@
SECRET_KEY = 'django-insecure-5v%hee4=2+b)48@dq006tmga5--yu8p3*5ye3*q8a(-4goyoq*'

# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
DEBUG = False

ALLOWED_HOSTS = []
ALLOWED_HOSTS = ['local-library-djangoyt.herokuapp.com']


# Application definition
Expand All @@ -50,6 +50,7 @@
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
'whitenoise.middleware.WhiteNoiseMiddleware',
]

ROOT_URLCONF = 'locallibrary.urls'
Expand Down Expand Up @@ -78,12 +79,15 @@

DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': BASE_DIR / 'db.sqlite3',
'ENGINE': 'django.db.backends.postgresql',
'NAME': 'd39k8gs6eh3n7m',
'HOST': 'ec2-54-227-248-71.compute-1.amazonaws.com',
'PORT': '5432',
'USER': 'kbanxbkiramwxe',
'PASSWORD': 'f73a8b97930270899ec6ee1f02959ca783f491a98e4d44c0afdc369b2f1b22d0'
}
}


# Password validation
# https://docs.djangoproject.com/en/4.0/ref/settings/#auth-password-validators

Expand All @@ -108,11 +112,11 @@

LANGUAGE_CODE = 'en-us'

TIME_ZONE = 'UTC'
TIME_ZONE = 'Asia/Kolkata'

USE_I18N = True

USE_TZ = True
USE_TZ = False

LOGIN_REDIRECT_URL = '/'

Expand Down
1 change: 1 addition & 0 deletions runtime.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
python-3.8.13