48👍
You have to set your website domain as an allowed host. Place this in your ./app/settings/settings.py
:
ALLOWED_HOSTS = [".herokuapp.com", ".researchthroughdesign.org"]
In production you can even remove .herokuapp.com
- [Django]-RuntimeWarning: DateTimeField received a naive datetime
- [Django]-Django unique_together with nullable ForeignKey
- [Django]-How to use regex in django query
0👍
It was answered already but I just wanted to add if you are changing the app name on Heroku right after you change the git remote also make sure to do what was answered by @Leo because I was also struggling to why it was showing 400 response on the browser until I found this question.
👤ZaMy
- [Django]-Django – Create A Zip of Multiple Files and Make It Downloadable
- [Django]-How to set up custom middleware in Django?
- [Django]-Radio buttons in django Forms
Source:stackexchange.com