Skip to content

Commit fdbb655

Browse files
committed
settings change
1 parent dc90bed commit fdbb655

File tree

1 file changed

+16
-3
lines changed

1 file changed

+16
-3
lines changed

screencast/settings.py

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
SECRET_KEY = 'k(o5900674725b3)1w5(lgz$9ckubfetysox12!(3h4=73+@^&'
2424

2525
# SECURITY WARNING: don't run with debug turned on in production!
26-
DEBUG = True
26+
DEBUG = False
2727

2828
ALLOWED_HOSTS = ['screencast20.azurewebsites.net','127.0.0.1','.herokuapp.com','.pythonanywhere.com']
2929

@@ -122,6 +122,19 @@
122122
}
123123
}
124124
}
125+
#DATABASES = {
126+
# 'default': {
127+
# 'ENGINE': 'django.db.backends.postgresql_psycopg2',
128+
# 'NAME': 'd8s04nkvqhp0h4',
129+
# 'USER': 'sqevffmxfxtbux',
130+
# 'PASSWORD': 'b654e6b6714686cffbd044547270e7c70c641b234fb37ec373b6d9f399ba9402',
131+
# 'HOST': 'ec2-34-224-229-81.compute-1.amazonaws.com',
132+
133+
# 'OPTIONS': {
134+
#'sslmode': 'require',
135+
# }
136+
# }
137+
#}
125138

126139
# Password validation
127140
# https://docs.djangoproject.com/en/3.0/ref/settings/#auth-password-validators
@@ -200,8 +213,8 @@
200213
'social_core.pipeline.user.user_details', )
201214

202215
SIMPLE_JWT = {
203-
'ACCESS_TOKEN_LIFETIME': timedelta(minutes=30),
204-
'REFRESH_TOKEN_LIFETIME': timedelta(days=1),
216+
'ACCESS_TOKEN_LIFETIME': timedelta(minutes=5),
217+
'REFRESH_TOKEN_LIFETIME': timedelta(days=2),
205218
'ROTATE_REFRESH_TOKENS': False,
206219
'BLACKLIST_AFTER_ROTATION': True,
207220

0 commit comments

Comments
 (0)