title: Deploying Django Project with Supervisor and Gunicorn getting FATAL Exited too quickly (process log may have details) error
body: <p>Im trying to launch my django project using <a href="https://simpleisbetterthancomplex.com/series/2017/10/16/a-complete-beginners-guide-to-django-part-7.html" rel="nofollow noreferrer">this</a> tutorial. I am currently setting up gunicorn and supervisor. These are the configs...</p>
  
  <p>Here is my Gunicorn config:</p>
  
  <pre><code>#!/bin/bash
  NAME="smart_suvey"
  DIR=/home/smartsurvey/mysite2
  USER=smartsurvey
  GROUP=smartsurvey
  WORKERS=3
  BIND=unix:/home/smartsurvey/run/gunicorn.sock
  DJANGO_SETTINGS_MODULE=myproject.settings
  DJANGO_WSGI_MODULE=myproject.wsgi
  LOG_LEVEL=error
  
  cd $DIR
  source ../venv/bin/activate
  
  export DJANGO_SETTINGS_MODULE=$DJANGO_SETTINGS_MODULE
  export PYTHONPATH=$DIR:$PYTHONPATH
  
  exec ../venv/bin/gunicorn ${DJANGO_WSGI_MODULE}:application \
    --name $NAME \
    --workers $WORKERS \
    --user=$USER \
    --group=$GROUP \
    --bind=$BIND \
    --log-level=$LOG_LEVEL \
    --log-file=-
  </code></pre>
  
  <p>This is my supervisor config:
  [program:smartsurvey]</p>
  
  <pre><code>command=/home/smartsurvey/gunicorn_start
  user=smartsurvey
  autostart=true
  autorestart=true
  redirect_stderr=true
  stdout_logfile=/home/smartsurvey/logs/gunicorn.log
  </code></pre>
  
  <p>When Ive saved my supervisor, i run <code>sudo supervisorctl reread</code> followed by <code>sudo supervisorctl update</code>. These throw no errors.</p>
  
  <p>I then run <code>sudo supervisorctl status smartsurvey</code>, which gives the error <code>smartsurvey  FATAL   Exited too quickly (process log may have details)</code></p>
  
  <p>This is my first time putting my project on the internet so help would be appreciated!</p>
  
  <p>Thanks</p>