I have a web URL which I can access only after I have added an entry into the /etc/hosts file which was in the format:
<IP> <URL>
But now I want to replicate the same thing in an online django application on heroku.
How do I replicate this with code, either some library on python or some procedure on heroku?