📅  最后修改于: 2022-03-11 14:45:17.425000             🧑  作者: Mango
#Add the name of your app in the list of alowed hosts in settings.py:
ALLOWED_HOSTS = ['myapp.herokuapp.com']
#or if you're using custom domains you might want to add this way:
heroku config:set DJANGO_ALLOWED_HOSTS=.example.com,example.herokuapp.com