0
When I try to access my website hosted on Heroku, it returns the message: "Server Error (500)".
Heroku[router]: at=info method=GET path="/favicon.ico" host=quiz-py.herokuapp.com request_id=ef039cdc-8d6a-4735-9a91-942d546c5d06 Fwd="170.79.165.63" Dyno=web.1 connect=1ms service=25ms status=500 bytes=366 Protocol=https
Settings:
DEBUG = False
ALLOWED_HOSTS = ["https://quiz-py.herokuapp.com/", "127.0.0.1"]
SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')
STATIC_ROOT = os.path.join(BASE_DIR, "staticfiles")
STATICFILES_DIRS = (os.path.join(BASE_DIR, "static"),)
django_heroku.settings(locals())
wsgi py.:
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'app.settings')
#application = get_wsgi_application()
from dj_static import Cling
application = Cling(get_wsgi_application())
Procfile:
web: gunicorn app.wsgi --log-file -
I don’t know why, I did a lot of research but I couldn’t find an answer.