Skip to content

Instantly share code, notes, and snippets.

View simon-johansson's full-sized avatar

Simon Johansson simon-johansson

View GitHub Profile
#!/bin/sh
# Maintaining
# git remote add upstream https://gist.github.com/3195465.git
# git fetch upstream
# git rebase upstream/master
# Set the colours you can use
black='\033[0;30m'
white='\033[0;37m'
"""
This fabric file makes setting up and deploying a django application much
easier to webfaction servers or your dedicated server, but it does make a
few assumptions. Namely that you're using Git, Apache and mod_wsgi. Also
you should have SSH installed on both the local machine and any servers you
want to deploy to.
Thanks to:
http://github.com/ryanmark/django-project-templates
import os
SITE_ROOT = os.path.dirname(os.path.realpath(__file__))
TEMPLATE_DIRS = (
# Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
# Always use forward slashes, even on Windows.
# Don't forget to use absolute paths, not relative paths.
os.path.join(SITE_ROOT, 'templates')
@simon-johansson
simon-johansson / mobile-meta-links.html
Created December 1, 2012 11:03
HTML: Mobile Viewport