Django ponies: Proposals for Django 1.2
Blog de Simon Willison Posted on September 29, 2009
I’ve decided to step up my involvement in Django development in the run-up to Django 1.2, so I’m currently going through several years worth of accumulated pony requests figuring out which ones are worth advocating for. I’m also ensuring I have the code to back them up—my innocent AutoEscaping proposal a few years ago resulted ...
Adding signing (and signed cookies) to Django core
Blog de Simon Willison Posted on September 24, 2009
Adding signing (and signed cookies) to Django core. I’ve been increasing my participation in Django recently—here’s my proposal for adding signing and signed cookies to Django, which I’d personally like to see ship as part of Django 1.2.
Towards a Standard for Django Session Messages
Blog de Simon Willison Posted on June 19, 2009
Towards a Standard for Django Session Messages. I completely agree that Django’s user.message_set (which I helped design) is unfit for purpose, but I don’t think sessions are the right solution for messages sent to users. A signed cookie containing either the full message or a key referencing the message body on the server is a much more ...
Integrating Facebook Connect with Django in 15 minutes
Blog de Simon Willison Posted on December 17, 2008
Integrating Facebook Connect with Django in 15 minutes. Django authentication middleware that calls the Facebook REST API using a cookie set by Facebook Connect and checks if that person is your Facebook friend. Despite most of the magic happening on the server you still need Facebook’s JavaScript to set that cookie in the first place.
Django snippets: Sign a string using SHA1, then shrink it using url-safe base65
Blog de Simon Willison Posted on August 27, 2008
Django snippets: Sign a string using SHA1, then shrink it using url-safe base65. I needed a way to create tamper-proof URLs and cookies by signing them, but didn’t want the overhead of a full 40 character SHA1 hash. After some experimentation, it turns out you can knock a 40 char hash down to 27 characters by encoding it using ...


