Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

bad request 400 heroku app

#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
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #bad #request #heroku #app
ADD COMMENT
Topic
Name
8+6 =