Monthly Archives: May 2013

Python Under the Hood: A simple generic model, part 1

Tonight I was digging through the SQLAlchemy and SQLSoup source code to help figure out what I’m doing wrong with my object mapping for in-memory sqlite. While doing this, I figured out how to make a very simple but powerful

Tagged with:
Posted in Computing, Programming, Python Unknown command: ‘createsuperuser’

tl;dr When you need to create a superuser, the official Django documentation says to run createsuperuser. Instead, run the following: $ python createsuperuser The Details While putting together a tutorial for Django, I started to explore how a project

Tagged with: , , , ,
Posted in Computing, Django, Programming, Python, Web Frameworks

How old is that salsa in the fridge?

You pull a jar of salsa out of the fridge. You don’t remember when you opened it up. A week ago, 2 months? maybe 3? I used to run into this problem more than I liked. We’d throw out food

Tagged with: ,
Posted in Cuisine