ehmatthes / heroku-buildpack-python

A demonstration version of the official Heroku buildpack for Python apps, showing how Django deployment can be further simplified.
https://ehmatthes.com/blog/simplified_heroku/
MIT License
16 stars 2 forks source link

Configure ALLOWED_HOSTS #6

Closed ehmatthes closed 3 years ago

ehmatthes commented 4 years ago

This is the current error, so address this next.

ehmatthes commented 4 years ago

['*'] for now, should change to proper host later.

ehmatthes commented 3 years ago

Set ALLOWED_HOSTS = ['.herokuapp.com']

This is good enough for now. It might be good to set this to include the actual Heroku app name, but I'm not quite sure how to get that at the moment. Might come later in the compile script, just before launching?