This document has now been incorporated into the uWSGI documentation:
http://uwsgi-docs.readthedocs.org/en/latest/tutorials/Django_and_nginx.html
Steps with explanations to set up a server using:
| server { | |
| location / | |
| { | |
| include uwsgi_params; | |
| uwsgi_pass unix:/tmp/core.socket; | |
| if ($request_method = 'OPTIONS') { | |
| add_header Access-Control-Allow-Origin *; | |
| # | |
| # Om nom nom cookies |
| /* (320x480) iPhone (Original, 3G, 3GS) */ | |
| @media only screen and (min-device-width: 320px) and (max-device-width: 480px) { | |
| /* insert styles here */ | |
| } | |
| /* (320x480) Smartphone, Portrait */ | |
| @media only screen and (device-width: 320px) and (orientation: portrait) { | |
| /* insert styles here */ | |
| } | |