title: How do I detect the current domain name in django?
body: <p>I want to design my web application to serve two different front-end templates depending on what domain the user enter my django application.</p>
  <p>So, if the user enter aaa.com, it would serve front-end from app AAA_USA, but if the user enter from aaa.co.my, it would serve front-end from app AAA_MY.</p>
  <p>What is the best way to do this? I was thinking of &quot;detecting the current domain name&quot; and then simply add an if-else statements in the View functions.</p>
  <p>These two domains will be pointing to the same Nameservers that contains my Django app.</p>