title: Moving a Django app into production using Nginx and Gunicorn, there are no errors but the page doesn't show
body: <p>I'm trying to setup an app on my Digital Ocean production server, I've followed <a href="https://www.digitalocean.com/community/tutorials/how-to-set-up-django-with-postgres-nginx-and-gunicorn-on-ubuntu-18-04" rel="nofollow noreferrer">these instructions</a>, testing gunicorn and nginx,I could access the app in gunicorn and both services start fine with no errors logged. However when I go to the site it does not show anything. This is a subdomain of my main site. Mostly I'm looking to find a place to start troubleshooting this especially since everything looks fine.</p>
  <p><strong>Configs:</strong></p>
  <p><strong>Nginx config for subdomain (Django) site:</strong></p>
  <pre><code>server {
    # use 'listen 80 deferred;' for Linux
    # use 'listen 80 accept_filter=httpready;' for FreeBSD
    listen 80;
  
    # set the correct host(s) for your site
    server_name subdomain.domain_name.com www.subdomain.domain_name.com;
  
    location = /favicon.ico {access_log off; log_not_found off;}
    location /static/ {
      root /path/to/static/files;
    }
  
    location / {
      include proxy_params;
      proxy_pass http://unix:/path/to/.sock/file;
    }
  
  }
  </code></pre>
  <p><strong>Nginx config for main (static) site:</strong></p>
  <pre><code>server {
          listen 80 default_server;
          listen [::]:80 default_server;
  
  
          root /var/www/main_site_folder;
  
      index index.html index.htm index.nginx-debian.html;
  
          server_name domain_name www.domain_name;
  
          location / {
          try_files $uri $uri/ =404;
          }
  
  }
  
  </code></pre>
  <pre><code>[Unit]
  Description=Description of the app
  After=network.target
  
  [Service]
  User=MyUserName
  Group=www-data
  WorkingDirectory=/var/www/app_directory/
  ExecStart=/path/to/venv/and/gunicorn --access-logfile - --workers 3 --bind unix:/var/www/app_dir/.sock_filename app_name.wsgi:application
  
  [Install]
  WantedBy=multi-user.target
  
  </code></pre>