質問編集履歴
1
コードの追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -310,13 +310,13 @@
|
|
310
310
|
|
311
311
|
'CLOUD_NAME': '****',
|
312
312
|
|
313
|
-
'API_KEY': '****
|
313
|
+
'API_KEY': '****',
|
314
|
-
|
314
|
+
|
315
|
-
'API_SECRET': '
|
315
|
+
'API_SECRET': '****'
|
316
316
|
|
317
317
|
}
|
318
318
|
|
319
|
-
|
319
|
+
|
320
320
|
|
321
321
|
MEDIA_URL = '/media/'
|
322
322
|
|
@@ -324,7 +324,7 @@
|
|
324
324
|
|
325
325
|
|
326
326
|
|
327
|
-
|
327
|
+
|
328
328
|
|
329
329
|
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
|
330
330
|
|
@@ -332,19 +332,19 @@
|
|
332
332
|
|
333
333
|
EMAIL_HOST = 'smtp.sendgrid.net'
|
334
334
|
|
335
|
-
#EMAIL_HOST_USER = '
|
335
|
+
#EMAIL_HOST_USER = '****'
|
336
336
|
|
337
337
|
EMAIL_HOST_USER = 'apikey'
|
338
338
|
|
339
|
-
#EMAIL_HOST_PASSWORD = '
|
339
|
+
#EMAIL_HOST_PASSWORD = '****'
|
340
|
-
|
340
|
+
|
341
|
-
EMAIL_HOST_PASSWORD = '
|
341
|
+
EMAIL_HOST_PASSWORD = '****'
|
342
342
|
|
343
343
|
EMAIL_PORT = 587
|
344
344
|
|
345
345
|
EMAIL_USE_TLS = True
|
346
346
|
|
347
|
-
DEFAULT_FROM_EMAIL = '
|
347
|
+
DEFAULT_FROM_EMAIL = '****'
|
348
348
|
|
349
349
|
|
350
350
|
|
@@ -368,25 +368,23 @@
|
|
368
368
|
|
369
369
|
|
370
370
|
|
371
|
-
ACCOUNT_EMAIL_REQUIRED = True
|
371
|
+
ACCOUNT_EMAIL_REQUIRED = True
|
372
|
-
|
372
|
+
|
373
|
-
ACCOUNT_USERNAME_REQUIRED = True
|
373
|
+
ACCOUNT_USERNAME_REQUIRED = True
|
374
|
-
|
374
|
+
|
375
|
-
ACCOUNT_SIGNUP_PASSWORD_ENTER_TWICE = True
|
375
|
+
ACCOUNT_SIGNUP_PASSWORD_ENTER_TWICE = True
|
376
376
|
|
377
377
|
ACCOUNT_SESSION_REMEMBER = True
|
378
378
|
|
379
|
-
ACCOUNT_AUTHENTICATION_METHOD = 'email'
|
379
|
+
ACCOUNT_AUTHENTICATION_METHOD = 'email'
|
380
|
-
|
380
|
+
|
381
|
-
ACCOUNT_UNIQUE_EMAIL = True
|
381
|
+
ACCOUNT_UNIQUE_EMAIL = True
|
382
|
-
|
382
|
+
|
383
|
-
ACCOUNT_EMAIL_VERIFICATION = 'mandatory'
|
383
|
+
ACCOUNT_EMAIL_VERIFICATION = 'mandatory'
|
384
|
-
|
385
|
-
|
386
|
-
|
387
|
-
|
388
|
-
|
389
|
-
|
384
|
+
|
385
|
+
|
386
|
+
|
387
|
+
|
390
388
|
|
391
389
|
try:
|
392
390
|
|
@@ -402,11 +400,11 @@
|
|
402
400
|
|
403
401
|
SECRET_KEY = os.environ['SECRET_KEY']
|
404
402
|
|
405
|
-
import django_heroku
|
403
|
+
import django_heroku
|
406
|
-
|
404
|
+
|
407
|
-
django_heroku.settings(locals())
|
405
|
+
django_heroku.settings(locals())
|
408
|
-
|
409
|
-
|
406
|
+
|
407
|
+
|
410
408
|
|
411
409
|
db_from_env = dj_database_url.config(conn_max_age=600, ssl_require=True)
|
412
410
|
|
@@ -414,12 +412,24 @@
|
|
414
412
|
|
415
413
|
|
416
414
|
|
417
|
-
|
418
|
-
|
419
|
-
#TATICFILES_STORAGE= 'whitenoise.storage.CompressedManifestStaticFilesStorage'
|
420
|
-
|
421
415
|
```
|
422
416
|
|
417
|
+
herokuのログは以下のようになっていましたが、何が原因なのかわかりませんでした。
|
418
|
+
|
419
|
+
```terminal
|
420
|
+
|
421
|
+
2021-05-23T01:17:50.373817+00:00 app[web.1]: 10.45.25.242 - - [23/May/2021:10:17:50 +0900] "GET / HTTP/1.1" 500 145 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.212 Safari/537.36"
|
422
|
+
|
423
|
+
2021-05-23T01:17:50.378278+00:00 heroku[router]: at=info method=GET path="/" host=kairans.herokuapp.com request_id=04db8619-6827-426a-9fd7-2e12c5cc6be5 fwd="49.251.90.26" dyno=web.1 connect=1ms service=1101ms status=500 bytes=403 protocol=https
|
424
|
+
|
425
|
+
2021-05-23T01:17:51.164517+00:00 app[web.1]: 10.45.25.242 - - [23/May/2021:10:17:51 +0900] "GET /favicon.ico HTTP/1.1" 500 145 "https://kairans.herokuapp.com/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.212 Safari/537.36"
|
426
|
+
|
427
|
+
2021-05-23T01:17:51.169246+00:00 heroku[router]: at=info method=GET path="/favicon.ico" host=kairans.herokuapp.com request_id=7dde5076-4ce5-418d-a8b0-f4d0664a8204 fwd="49.251.90.26" dyno=web.1 connect=1ms service=113ms status=500 bytes=389 protocol=https
|
428
|
+
|
429
|
+
```
|
430
|
+
|
431
|
+
|
432
|
+
|
423
433
|
faviconの拡張子を.pmgから.icoに変更したりしましたが変わりませんでした。
|
424
434
|
|
425
435
|
よろしくお願いします。
|