title: Multiple Domain Hosting With One Django Project
body: <p>I'm new to Django and python in general, so please bear with me.  I want to create a very simple SaaS app to get started with Django and python.  My design dictates that all domains will run on the same codebase.  The only thing that will differ between each website is the database connection details.  (IE each domain receives its own database.  All databases contain the same schema)</p>
  
  <p>How would I go about this with Django?  I've seen the Sites framework, but I'm not sure that's what I'm looking for.  Essentially, I'd like to either</p>
  
  <p>A) Have Django look up the database connection details from a MASTER database, when the page loads, and then use those details when connecting to the site database</p>
  
  <p>B) Have a settings.py per-site and have django include the correct file at runtime (IE settings_domain.py)</p>
  
  <p>C) Have the index WSGI include the appropriate settings file based on the accessing domain (This seems like it could work, but I'm sure I'm missing a potential pitfall of this implementation)</p>
  
  <p>D) Some other implementation I haven't thought of....</p>
  
  <p>Am I making this more complicated than it needs to be?  How can I easily implement this functionality into a new django project?</p>