title: Trying to run Django app on Gunicorn locally using Foreman
body: <p>I'm following <a href="https://devcenter.heroku.com/articles/django" rel="nofollow">Getting Started with Django on Heroku tutorial</a><br>
  When I'm trying to run Django app on the Gunicorn using Foreman, i get next error traceback:  </p>
  
  <pre><code>09:23:33 web.1  | started with pid 7012  
  09:23:34 web.1  | 2013-05-06 09:23:34 [7012] [INFO] Starting gunicorn 0.17.2  
  09:23:34 web.1  | 2013-05-06 09:23:34 [7012] [INFO] Listening at: `http://0.0.0.0:5000` (7012)  
  09:23:34 web.1  | 2013-05-06 09:23:34 [7012] [INFO] Using worker: sync  
  09:23:34 web.1  | 2013-05-06 09:23:34 [7015] [INFO] Booting worker with pid: 7015  
  09:23:34 web.1  | 2013-05-06 09:23:34 [7015] [ERROR] Exception in worker process:  
  09:23:34 web.1  | Traceback (most recent call last):  
  09:23:34 web.1  |   File "/usr/local/lib/python2.7/site-packages/gunicorn/arbiter.py", line 485, in spawn_worker  
  09:23:34 web.1  |     worker.init_process()  
  09:23:34 web.1  |   File "/usr/local/lib/python2.7/site-packages/gunicorn/workers/base.py", line 100, in init_process  
  09:23:34 web.1  |     self.wsgi = self.app.wsgi()  
  09:23:34 web.1  |   File "/usr/local/lib/python2.7/site-packages/gunicorn/app/base.py", line 103, in wsgi  
  09:23:34 web.1  |     self.callable = self.load()  
  09:23:34 web.1  |   File "/usr/local/lib/python2.7/site-packages/gunicorn/app/wsgiapp.py", line 25, in load  
  09:23:34 web.1  |     return util.import_app(self.app_uri)  
  09:23:34 web.1  |   File "/usr/local/lib/python2.7/site-packages/gunicorn/util.py", line 372, in import_app  
  09:23:34 web.1  |     __import__(module)  
  09:23:34 web.1  |   File "/Users/cosmicMan66/DjangoDev/hepcat_server/hepcat_server/wsgi.py", line 27, in &lt;module&gt;  
  09:23:34 web.1  |     from django.core.wsgi import get_wsgi_application  
  09:23:34 web.1  | ImportError: No module named django.core.wsgi  
  09:23:34 web.1  | Traceback (most recent call last):  
  09:23:34 web.1  |   File "/usr/local/lib/python2.7/site-packages/gunicorn/arbiter.py", line 485, in spawn_worker  
  09:23:34 web.1  |     worker.init_process()  
  09:23:34 web.1  |   File "/usr/local/lib/python2.7/site-packages/gunicorn/workers/base.py", line 100, in init_process  
  09:23:34 web.1  |     self.wsgi = self.app.wsgi()  
  09:23:34 web.1  |   File "/usr/local/lib/python2.7/site-packages/gunicorn/app/base.py", line 103, in wsgi  
  09:23:34 web.1  |     self.callable = self.load()  
  09:23:34 web.1  |   File "/usr/local/lib/python2.7/site-packages/gunicorn/app/wsgiapp.py", line 25, in load  
  09:23:34 web.1  |     return util.import_app(self.app_uri)  
  09:23:34 web.1  |   File "/usr/local/lib/python2.7/site-packages/gunicorn/util.py", line 372, in import_app  
  09:23:34 web.1  |     __import__(module)  
  09:23:34 web.1  |   File "/Users/cosmicMan66/DjangoDev/hepcat_server/hepcat_server/wsgi.py", line 27, in &lt;module&gt;  
  09:23:34 web.1  |     from django.core.wsgi import get_wsgi_application  
  09:23:34 web.1  | ImportError: No module named django.core.wsgi  
  09:23:34 web.1  | 2013-05-06 09:23:34 [7015] [INFO] Worker exiting (pid: 7015)  
  09:23:35 web.1  | 2013-05-06 09:23:35 [7012] [INFO] Shutting down: Master  
  09:23:35 web.1  | 2013-05-06 09:23:35 [7012] [INFO] Reason: Worker failed to boot.  
  09:23:35 web.1  | exited with code 3  
  09:23:35 system | sending SIGTERM to all processes  
  SIGTERM received
  </code></pre>
  
  <p>Procfile is located in the root directory of a project and contains:  </p>
  
  <blockquote>
    <p>web: gunicorn hepcat_server.wsgi  </p>
  </blockquote>
  
  <p>settings.py is located in hepcat_server directory  </p>
  
  <p>when I use <code>$ python manage.py run_gunicorn</code><br>
  gunicorn starts successfully and I see default Django page</p>