Skip to content

Instantly share code, notes, and snippets.

@spenthil
Created April 10, 2012 23:30
Show Gist options
  • Save spenthil/2355602 to your computer and use it in GitHub Desktop.
Save spenthil/2355602 to your computer and use it in GitHub Desktop.
ipython notebook startup
from django.core.management import setup_environ
from counsyl.product import settings
setup_environ(settings)
from django.db.models.loading import get_models
for m in get_models():
exec "from %s import %s" % (m.__module__, m.__name__)
from pandas import *
from collections import *
ic = InsuranceClaim.objects.all()
ip = InsurancePayer.objects.all()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment