Skip to content

Commit ee3d98c

Browse files
committed
feature: added logout API view, added admin claims to jwt generated tokens
1 parent 6bad20f commit ee3d98c

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

izpitnik/settings.py

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,15 +235,32 @@
235235
'fixtures'
236236
]
237237

238-
if False and config("ENV") == "production":
238+
if config("ENV") == "production":
239239
CSRF_COOKIE_SECURE = True # If using HTTPS
240240
SESSION_COOKIE_SECURE = True # If using HTTPS
241241
SECURE_SSL_REDIRECT = True # Force HTTPS
242242
SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')
243+
244+
LOGGING = {
245+
'version': 1,
246+
'disable_existing_loggers': False,
247+
'handlers': {
248+
'console': {
249+
'class': 'logging.StreamHandler',
250+
},
251+
},
252+
'root': {
253+
'handlers': ['console'],
254+
'level': 'ERROR',
255+
},
256+
}
257+
243258
else:
244259
CORS_ALLOW_ALL_ORIGINS = True
245260
#nothing
246261

247262

248263

249264

265+
266+

0 commit comments

Comments
 (0)