title: How to run a single django project for different customers
body: <p>I have developed a web application named “SANET” using <code>django</code>, <code>gunicorn</code> and <code>nginx</code> for a customer named <code>customerA</code> and gave them access using <code>customerA.mydomain.com</code>.</p>
  
  <p>Now a new customer <code>customerB</code> has ordered a dedicated version.</p>
  
  <p>Here is what I think I could do (I want them all on a particular server):</p>
  
  <ol>
  <li>make a copy from project and deploy it on <code>customerB.mydomain.com</code> like a compeletly different project</li>
  <li>find a way to just change the project database config depending on which domain is requested</li>
  </ol>
  
  <p>It would be appreciated if you can guide me to choose one of these options or offer me a better way.</p>