title: Django - Supervisor : exited too quickly
body: <p>I try to deploy my website in Django+Supervisor+NGINX on Ubuntu server 16.04.</p>
  
  <p>Here is my .conf (supervisor):</p>
  
  <pre><code>[program:sitepro]
  command = /home/user/sitepro/bin/gunicorn sitepro.wsgi:application --bind mywebsite.fr:8002
  user = user
  autostart = true
  autorestart = true
  </code></pre>
  
  <p>My NGINX config file :</p>
  
  <pre><code>server {
      listen      80;
      server_name .mywebsite.fr;
      charset     utf-8;
      root /home/user/sitepro/site/sitepro;
      access_log /home/user/sitepro/site/logs/nginx/access.log;
      error_log /home/user/sitepro/site/logs/nginx/error.log;
  
      location /static {
          alias /home/user/sitepro/site/static;
      }
  
      location / {
          proxy_set_header Host $http_host;
          proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
          proxy_redirect off;
          proxy_pass http://127.0.0.1:8002;
      }
  }
  </code></pre>
  
  <p>When I try to launch gunicorn on the root of my project, everything goes right :</p>
  
  <pre><code>(sitepro) user@mybps:~/sitepro/site$ gunicorn sitepro.wsgi:application --bind mywebsite.fr:8002
  [2017-11-01 16:09:37 +0000] [1920] [INFO] Starting gunicorn 19.7.1
  [2017-11-01 16:09:37 +0000] [1920] [INFO] Listening at: http://79.137.39.12:8002 (1920)
  [2017-11-01 16:09:37 +0000] [1920] [INFO] Using worker: sync
  [2017-11-01 16:09:37 +0000] [1925] [INFO] Booting worker with pid: 1925
  </code></pre>
  
  <p>I've done a supervisorctrl reread and update (worked).
  And if I make supervisorctl status sitepro</p>
  
  <pre><code>sitepro                          FATAL     Exited too quickly (process log may have details)
  </code></pre>
  
  <p>And if I access my website I've got the "Welcome to Nginx" default page.</p>
  
  <p>I've tried many tutorials for deploy django : I'm lost and tried many things.
  Could someone give me a simple and fast tutorial to deploy Django that he used for his propre needings please ?</p>
  
  <p>Thanks !</p>