title: django+gunicorn+nginx, django admin return 504 Gateway Time-out
body: <p>I am working on django+gunicorn+nginx.
  In the django admin, i am trying to delete an item 'user', which links to quite a lot of data in database, and it returns ' 504 Gateway Time-out' after 60 seconds.
  Then I tried on changing the config of nginx and the one of gunicorn as below</p>
  
  <p>in gunicorn:</p>
  
  <pre><code>timeout = 10000
  </code></pre>
  
  <p>and in nginx</p>
  
  <pre><code>    proxy_connect_timeout 50000;
      proxy_read_timeout 50000;
      proxy_send_timeout 50000;
  </code></pre>
  
  <p>But no matter what i have changed, the server always timeout after 60 seconds!</p>
  
  <p>What can i do? I am total clueless...</p>
  
  <p>And also the server is down too, i can't even ssh into it.
  looks not a nginx/gunicorn config problem?</p>
  
  <p>ngix.conf</p>
  
  <pre><code>##
  # Logging Settings
  ##
  
  access_log /var/log/nginx/access.log;
  error_log /var/log/nginx/error.log;
  
  ##
  # Gzip Settings
  ##
  
  gzip on;
  gzip_disable "msie6";
  
  include /etc/nginx/conf.d/*.conf;
  include /etc/nginx/sites-enabled/*;
  </code></pre>
  
  <p>sites-enabled/app.conf</p>
  
  <pre><code>    location / {
      try_files $uri @app;
  }
  
  location @app {
      proxy_connect_timeout 50000;
      proxy_read_timeout 50000;
      proxy_send_timeout 50000;
      proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
      proxy_set_header Host $http_host;
      proxy_redirect off;
  
      proxy_pass http://xxx;
  }
  </code></pre>