Hey you!

Postcards are cool! Go send some ->

postme.me

Simple trick for testing forms full of checkboxes with django

Dec 02 2011 Published by under A tech a day

In late 2011 I hope we can all agree that unit testing is pretty important when creating websites or almost anything. Doesn’t really matter whether you prefer a blackbox integration testingĀ approach or a strict unit testing style. What matters is that you have tests. But what do you do when you want to test a [...]

Comments Off

Programatically uploading to blobstore in python

Aug 10 2010 Published by under Coding

Officially this is something that cannot be done. Or rather that shouldn’t be done. When you look at the google appengine docs on “uploading to blobstore” this is what they have to say: Blobs are useful for serving large files, such as video or image files, and for allowing users to upload large data files. [...]

Comments Off

Django protip #2: Forms are awesome

Aug 03 2010 Published by under Coding,Django Protip

Image by warrenski via Flickr Welcome to another installment of Swizec’s Django protip. Previously we discussed a better way to structure your django apps, but nobody cared about that because everybody is rather silly. This time we’ll be talking about how awesome forms are and why you should be using them for pretty much everything. [...]

3 responses so far

Django protip #1: A better App structure

Jul 21 2010 Published by under Coding,Django Protip

Image via Wikipedia When I started coding for our latest project at Preona a bit of an epiphany happened. I suddenly got django. Every pattern that used to feel a bit strange and I may have fought a little, suddenly became obvious and simple. Suddenly out of the blue my whole codebase is so marvelously [...]

3 responses so far

Small trick for seamless base64 password storage in django

Jul 14 2010 Published by under Coding

Image via Wikipedia These days even the noobiest of the noobs know that passwords should never be stored in plain-tect on the server. For various good and bad reasons, but the gist of it is security through obscurity. What a few less people know is that base64 is the same as plaintext. Not only is [...]

4 responses so far

Splitting and merging django models with perfect transparency

Feb 18 2010 Published by under Insanity

This is a howto that might come in handy to some people, but mostly I just want to document how I poked around some very angry django dragons and created something marvelous. There are also people on twitter who were wondering what the fuck I was doing. So let’s start by describing the problem. We [...]

3 responses so far

« Exam season eats time like women,... The real-time WebCamp bash »