title: Set DJANGO_SETTINGS_MODULE through uwsgi
body: <p>I am trying to find the best way to split my django settings, and have the different settings files served for dev and prod.</p>
  
  <p>My wsgi file:</p>
  
  <pre><code>from django.core.wsgi import get_wsgi_application
  application = get_wsgi_application()
  </code></pre>
  
  <p>and in my uwsgi.ini file I have this:</p>
  
  <pre><code>env = DJANGO_SETTINGS_MODULE=project.settings.local
  wsgi-file = project/wsgi.py
  </code></pre>
  
  <p>But the env from the uwsgi.ini file is not passed to wsgi. If I print os.environ in the wsgi file the DJANGO_SETTINGS_MODULE is not set.</p>
  
  <p>Any ideas?</p>