Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am avium on github.
  • I am avium (https://keybase.io/avium) on keybase.
  • I have a public key ASBcciKn2d9cA7M1S4i2EgciZ6jibbRjqsd5SqzNNaRg3wo

To claim this, I am signing this object:

@avium
avium / gist:7452633
Created November 13, 2013 17:08
THE METHOD!!!
/**
* Returns the message type as indicated in the messageJSON dictionary.
*
* When an error occurs, the return value is PMChatMessageTypeUnknown.
*
* @param messageJSON JSON representation of a chat message
* @param error the error pointer to populate, or NULL
*
* @return the chat message type
*/
"""
This fabric file makes setting up and deploying a django application much
easier, but it does make a few assumptions. Namely that you're using Git,
Apache and mod_wsgi and your using Debian or Ubuntu. Also you should have
Django installed on your local machine and SSH installed on both the local
machine and any servers you want to deploy to.
_note that I've used the name project_name throughout this example. Replace
this with whatever your project is called._