We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6bad20f commit ee3d98cCopy full SHA for ee3d98c
izpitnik/settings.py
@@ -235,15 +235,32 @@
235
'fixtures'
236
]
237
238
-if False and config("ENV") == "production":
+if config("ENV") == "production":
239
CSRF_COOKIE_SECURE = True # If using HTTPS
240
SESSION_COOKIE_SECURE = True # If using HTTPS
241
SECURE_SSL_REDIRECT = True # Force HTTPS
242
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
258
else:
259
CORS_ALLOW_ALL_ORIGINS = True
260
#nothing
261
262
263
264
265
266
0 commit comments