title: Gunicorn + Nginx Internal server error while trying to apply code changes
body: <p>I set up a VPS (django + gunicorn + nginx ) and it was working fine showing default django screen, but after I updated my django code and made all migrations I thought that now I need to restart gunicorn to apply changes.</p>
  
  <p>So I did this:</p>
  
  <pre><code>sudo systemctl restart gunicorn 
  </code></pre>
  
  <p>After this I've got <code>Internal Server Error</code>
  Everything is set up like <a href="https://www.digitalocean.com/community/tutorials/how-to-set-up-django-with-postgres-nginx-and-gunicorn-on-ubuntu-16-04" rel="nofollow noreferrer">here</a></p>
  
  <p>gunicorn.service :</p>
  
  <pre><code>[Unit]
  Description=gunicorn daemon
  After=network.targett
  
  [Service]
  User=thekotik
  Group=www-data
  WorkingDirectory=/home/thekotik/glboy
  ExecStart=/home/thekotik/glboy/denv/bin/gunicorn --workers 3 --bind unix:/home/thekotik/glboy/closer.sock closer.wsgi:application
  
  [Install]
  WantedBy=multi-user.target
  </code></pre>