Django and really big numbers
I ran into a problem in Django that I'd never encountered before this morning: I had a really huge number to store. Tens of billions huge. Postgres and MySQL's integer fields won't store a number that big. They have a field type of bigint, but if you're writing Django models, there's no corresponding bigint field type. There's just an integer.
Turns out, it's really simple to make your own bigint field type. I found out how buried deep in a Trac entry on this. I post it here to help anyone else out ...
