Skip to content

Instantly share code, notes, and snippets.

View Mikodes's full-sized avatar
🦊

Mike Lopez Mikodes

🦊
View GitHub Profile
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
@Mikodes
Mikodes / gist:be9b9ce42e46c3d4ccb6
Created November 26, 2014 10:30
All Media queries for resolutions
/* (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 */
}

This document has now been incorporated into the uWSGI documentation:

http://uwsgi-docs.readthedocs.org/en/latest/tutorials/Django_and_nginx.html

Set up Django, nginx and uwsgi

Steps with explanations to set up a server using: