Skip to content

Instantly share code, notes, and snippets.

View JohnSpeno's full-sized avatar
🦋
I may never respond.

John Speno JohnSpeno

🦋
I may never respond.
View GitHub Profile

Upgrade Django from 1.1 to 1.5.1. This highlights some of the issues that one may encounter when updating Django. It's not possible to cover every case, but this should provide a good general starting point.

Change to DATABASES variable in settings.py.

Django now supports multiple databases and changes are needed to how the database connections are defined.

  • Changed in Django 1.2
  • Change Required by Django 1.4
  • Source:
@JohnSpeno
JohnSpeno / .tmux.conf
Last active December 15, 2015 07:29 — forked from jgeewax/.tmux.conf
# Leader key should be the same as screen (C-a)
set -g prefix C-a
# Double tap to go to previous window
bind C-a last-window
# Splitting windows should use | and -
unbind %
bind | split-window -h
bind - split-window -v
@JohnSpeno
JohnSpeno / pythonrc
Created March 3, 2013 17:45
My .pythonrc file
import rlcompleter
import atexit
import os
import readline
import sys
from pydoc import help
# Make TAB complete stuff
readline.parse_and_bind("tab: complete")
@JohnSpeno
JohnSpeno / My Python style guide.md
Last active September 20, 2019 12:25
John Speno's personal Python style guide

John Speno's Python Style Guide

If you don't use it, you are dead to me.

  • Avoid long lines and do not use a backslash for line continuation. Figure it out. Look at some of these examples for help:
zone_sums = dict(
    one_free=Sum('ports__one_gig_available'),
 one_total=Sum('ports__one_gig_total'),