E-Scribe : a programmer’s blog

About Me

PBX I'm Paul Bissex. I build web applications using open source software, especially Django. Started my career doing graphic design for newspapers and magazines in the '90s. Then wrote tech commentary and reviews for Wired, Salon, Chicago Tribune, and others you never heard of. Then I built operations software at a photography school. Then I helped big media serve 40 million pages a day. Then I worked on a translation services API doing millions of dollars of business. Now I'm building the core platform of a global startup accelerator. Feel free to email me.

Book

I co-wrote "Python Web Development with Django". It was the first book to cover the long-awaited Django 1.0. Published by Addison-Wesley and still in print!

Colophon

Built using Django, served with gunicorn and nginx. The database is SQLite. Hosted on a FreeBSD VPS at Johncompanies.com. Comment-spam protection by Akismet.

Pile o'Tags

Stuff I Use

bitbucket, Django, Emacs, FreeBSD, Git, jQuery, LaunchBar, Markdown, Mercurial, OS X, Python, Review Board, S3, SQLite, Sublime Text, Ubuntu Linux

Spam Report

At least 236429 pieces of comment spam killed since 2008, mostly via Akismet.

Django as superego

I built a toy site using Django's "generic views" last night. Basically this means that for the first time I created an app without writing any real code -- I defined a model, wrote some rules mapping URLs to Django's generic view functions, and made some templates that get called by that view code (I spent most of my time fussing with the templates!).

This would have been pretty easy to hack up in PHP, too, but there are lots of things that would have been just as easy to not do the "right" way -- things like clean URLs everywhere, redirect-after-POST (to avoid multiple submissions), custom error pages, a polished admin for inspecting and editing the data, nicely modular templates. Django made it easier to do it right than to do it wrong.

The site is a "pastebin" app, so as a bonus it gave me a convenient way to share the source. Insert pro forma apology about quality of code here.

http://paste.e-scribe.com/

Tuesday, May 16th, 2006
+ +
2 comments

Comment from Dagur , later that day

Very handy! Now I just wish gedit and/or pydev did syntax highlighting like that.

Comment from Panos , later that day

Plain and simple. I like it. I couldn't have thought it would be that simple to make a pastebin with django.

Then again, all you gotta do is try, as you showed us :)

Thanks for food for thought.

Comments are closed for this post. But I welcome questions/comments via email or Twitter.