Skip to content

Instantly share code, notes, and snippets.

@mjallday
Created June 8, 2012 23:59
Show Gist options
  • Save mjallday/2898745 to your computer and use it in GitHub Desktop.
Save mjallday/2898745 to your computer and use it in GitHub Desktop.
import balanced
from django.conf import settings
class BalancedMiddleware(object):
def process_request(*_):
balanced.configure(settings.BALANCED['secret'])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment