title: deploying django site (wsgi)
body: <p>Trying to use 2 different settings file for production and dev.</p>
  
  <p>I set DJANGO_SETTINGS_MODULE='mysite.settings_production'<br>
  Works perfectly when running server with <code>runserver</code>  </p>
  
  <p>When I run it with apache though, apache doesn't seem to use the setting in the <code>~/.bash_profile</code> and instead use <code>os.environ.setdefault("DJANGO_SETTINGS_MODULE", "mysite.settings")</code> in the wsgi.py file</p>
  
  <p>I guess it's maybe because apache is running on different user , not mine.. 
  ok.. so it seems it's running as www-data on my ec2 ubuntu.  </p>
  
  <p>So I have to create the /home/www-data/.bash_profile and set the env variable?</p>
  
  <p>It seems like so much hassle to use a different settings file.<br>
  Is there an obviously easier way to do this? 
  (I don't want to change the wsgi.py file, because it's source controlled)</p>