Skip to content

Commit d727493

Browse files
committed
heroku settings
1 parent 4a42946 commit d727493

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

Procfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
web: gunicorn screencast --log-file -
2-
web: python manage.py runserver 0.0.0.0:5000
1+
web: gunicorn screencast.wsgi

requirements.txt

44 Bytes
Binary file not shown.

screencast/settings.py

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212

1313
import os
1414
from datetime import timedelta
15+
import django_heroku
1516
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
1617
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
1718

@@ -109,17 +110,15 @@
109110
#'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
110111
# }
111112
#}
112-
DATABASES = {
113+
114+
DATABASES = { # GALAXYZPJ'S LOCAL INSTANCE
113115
'default': {
114-
'ENGINE': 'django.db.backends.postgresql_psycopg2',
116+
'ENGINE': 'django.db.backends.postgresql',
115117
'NAME': 'screencast',
116-
'USER': 'screencastadmin@screencast2020',
117-
'PASSWORD': 'screencast2020!',
118-
'HOST': 'screencast2020.postgres.database.azure.com',
119-
120-
'OPTIONS': {
121-
#'sslmode': 'require',
122-
}
118+
'USER': 'postgres',
119+
'PASSWORD': '1234',
120+
'HOST': 'localhost',
121+
'PORT': '5432',
123122
}
124123
}
125124
#DATABASES = {
@@ -230,4 +229,6 @@
230229
'SLIDING_TOKEN_REFRESH_EXP_CLAIM': 'refresh_exp',
231230
'SLIDING_TOKEN_LIFETIME': timedelta(minutes=30),
232231
'SLIDING_TOKEN_REFRESH_LIFETIME': timedelta(days=1),
233-
}
232+
}
233+
234+
django_heroku.settings(locals())

0 commit comments

Comments
 (0)