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

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

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

android - How to create dynamically Fragment pager adapter -