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:
| from django.db.models.query import QuerySet | |
| from django.db.models import Manager | |
| from django.contrib.contenttypes.models import ContentType | |
| from django.contrib.contenttypes.generic import GenericForeignKey | |
| class GFKManager(Manager): | |
| """ | |
| A manager that returns a GFKQuerySet instead of a regular QuerySet. | |
| """ |
| body#PAGEID_551849 input#ctl03_FunctionalBlock1_ctl00_memberApplicationMain_ctl00_stepTemplate_levelListView_membershipLevelsRepeater_ctl01_membershipLevelRadio, body#PAGEID_551849 label#ctl03_FunctionalBlock1_ctl00_memberApplicationMain_ctl00_stepTemplate_levelListView_membershipLevelsRepeater_ctl01_membershipLevelRadioLabel{ | |
| display: none; | |
| } |
| module.exports = function(grunt) { | |
| grunt.initConfig({ | |
| // Javascript minification | |
| min : { | |
| code : { | |
| 'src' : [ | |
| 'public/js/file1.js', | |
| 'public/js/file2.js', | |
| 'public/js/file3.js' | |
| ], |
| /* Panopticon Simulator v0.1 | |
| Scripts http://360gigapixels.com/tokyo-tower-panorama-photo/ to convey a | |
| deep, Enemy Of The State starring Will Smith-reminescent message regarding | |
| the surveillance state and the voyeurism of gigapixel photos. | |
| */ | |
| var people = [ | |
| [-7.510113307350065,14.652493577797886,0.5], | |
| [56.83548684296012,16.498978246091596,0.5], |
| # Some good references are: | |
| # http://russbrooks.com/2010/11/25/install-postgresql-9-on-os-x | |
| # http://www.paolocorti.net/2008/01/30/installing-postgis-on-ubuntu/ | |
| # http://postgis.refractions.net/documentation/manual-1.5/ch02.html#id2630392 | |
| #1. Install PostgreSQL postgis and postgres | |
| brew install postgis | |
| initdb /usr/local/var/postgres | |
| pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log start |
| /** | |
| * Make a X-Domain request to url and callback. | |
| * | |
| * @param url {String} | |
| * @param method {String} HTTP verb ('GET', 'POST', 'DELETE', etc.) | |
| * @param data {String} request body | |
| * @param callback {Function} to callback on completion | |
| * @param errback {Function} to callback on error | |
| */ | |
| function xdr(url, method, data, callback, errback) { |
| 'use strict'; | |
| var Marionette = require('backbone.marionette'), | |
| Konami; | |
| Konami = Marionette.Behavior.extend({ | |
| defaults: { | |
| code : [38, 38, 40, 40, 37, 39, 37, 39, 66, 65] | |
| }, | |
| events: { |
| // Support routines for automatically reporting user timing for common analytics platforms | |
| // Currently supports Google Analytics, Boomerang and SOASTA mPulse | |
| // In the case of boomerang, you will need to map the event names you want reported | |
| // to timer names (for mPulse these need to be custom0, custom1, etc) using a global variable: | |
| // rumMapping = {'aft': 'custom0'}; | |
| (function() { | |
| var wtt = function(n, t, b) { | |
| t = Math.round(t); | |
| if (t >= 0 && t < 3600000) { | |
| // Google Analytics |
| From: Chris DeSalvo <chris.desalvo@voxer.com> | |
| Subject: Why we can't process Emoji anymore | |
| Date: Thu, 12 Jan 2012 18:49:20 -0800 | |
| Message-Id: <AE459007-DF2E-4E41-B7A4-FA5C2A83025F@voxer.com> | |
| --Apple-Mail=_6DEAA046-886A-4A03-8508-6FD077D18F8B | |
| Content-Transfer-Encoding: quoted-printable | |
| Content-Type: text/plain; | |
| charset=utf-8 |