Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Python Getting Our Project on Heroku

Charlie Chen
Charlie Chen
5,044 Points

I replace all the djangoal with my app's name. However, I still fail to open my website.

I follow the steps in this and previous videos and replace all the djangoal with my app's name. However, when I open the app's website, I got application error on the site.

2 Answers

Kenneth Love
STAFF
Kenneth Love
Treehouse Guest Teacher

What information do you get when you run heroku logs?

Charlie Chen
Charlie Chen
5,044 Points

Hi teacher, This is what I got: 2017-03-18T13:21:09.964133+00:00 app[web.1]: Invalid HTTP_HOST header: 'youbike.herokuapp.com'. You may need to add 'youbike.herokuapp.com' to ALLOWED_HOSTS. Fortunately, I found the solution below by adding my site to the localhost. http://stackoverflow.com/questions/40582423/invalid-http-host-header

Kenneth Love
Kenneth Love
Treehouse Guest Teacher

So, read that error message. Does it point out something to you that might be missing? Maybe something in ALLOWED_HOSTS?