python - How to hide herokuapp.com site built in Django when the site is live -


let's have app in django (python environment)

example.herokuapp.com 

and put site live

example.com 

how achieve site not accessible via

example.herokuapp.com 

i not want access way in case trying to.

is there way?

in order hide

example.herokuapp.com 

from django live site

example.com 

set

allowed_hosts=['example.com'] 

for polishing website top detail, create beautiful custom 500.html template.


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -