File tree Expand file tree Collapse file tree 3 files changed +12
-12
lines changed
Expand file tree Collapse file tree 3 files changed +12
-12
lines changed Original file line number Diff line number Diff line change 1- web : gunicorn screencast --log-file -
2- web : python manage.py runserver 0.0.0.0:5000
1+ web : gunicorn screencast.wsgi
Original file line number Diff line number Diff line change 1212
1313import os
1414from datetime import timedelta
15+ import django_heroku
1516# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
1617BASE_DIR = os .path .dirname (os .path .dirname (os .path .abspath (__file__ )))
1718
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 = {
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 ())
You can’t perform that action at this time.
0 commit comments