📜  错误请求 400 heroku 应用程序 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:17.425000             🧑  作者: Mango

代码示例1
#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