Welcome to Boredom

Show entries from:

2010

2009

2008

2007

2006

2005

Entries in Category: Django

Django related stuff

Django pony wallpaper popularity

From my logs it seems that the blue wallpaper was the most popular:

74 /blog/django-pony/magic-pony-django-wallpaper-blue.png

57 /blog/django-pony/magic-pony-django-wallpaper-green.png

41 /blog/django-pony/magic-pony-django-wallpaper-red.png

For fun, here is a little graph to demostrate:

Django pony wallpaper colour popularity

More details

DJANGO PONY!

If like me, you like the idea of django pony but you're not so keen on the pink, here are some alternatives:

Django Pony Blue Django Pony Red Django Pony Green

More details

Last.fm

Having a few spare minutes, I've added a template tag to my site that shows the last 10 songs I've listened to on last.fm.

@register.inclusion_tag('blog/lastfm_tracks.html')
def latest_tracks():
    url = 'http://ws.audioscrobbler.com/1.0/user/DReynolds/recenttracks.txt'
    response = urllib2.urlopen(url)
    songs = []
    for line in response.read().split('\n'):
        if not re.match(r"^$", line):
            songdetail = re.split(",", line)[1]
            artist, song = re.split(" \xe2\x80\x93 ",  songdetail)
            songs.append({'artist' : artist, 'song' : song})
    return {'songs' : songs}

More details

Slight redesign redux

This time along with a completely different design (which isn't completely finished) I have updated the blog app to work with django trunk, along with adding a delicious template tag. The blog app also now uses markdown - a massive improvement since I was manually entering HTML before which proved quite time consuming. Hopefully these additions may make me update this a bit more often.

More details

I want one of these

More details

Look! I'm a django contributor

Following the check-in of my uk localisation ticket (5523) I am now listed as a contributor! Thanks Malcolm! (who incidentally ...

More details

Django builtin serializer doesn't work with form.errors

Thought I'd right a quick note in case anyone else came across this problem. In trying to serialize the output ...

More details

This is has taken me most of the day (on and off), but....

david@esteban:/var/www/django/trunk/tests$ ./runtests.py test_client --settings=authtest.test-settings ---------------------------------------------------------------------- Ran 28 tests in 4.591s OK

More details

Django fcgi init script

I've just added another Django site to my VDS using FCGI and was looking for an init script to start ...

More details

Python / Django weirdness

Can someone tell me what is the difference between this: >>> print datetime.now().strftime('%Y-%m-%d') 2006-08-09 and this... >>> print datetime.now().strftime('%Y-%m-%d'), 2006-08-09 ...

More details

django extending/subclassing a user

I've been trying for the past day or so to extend the user class in django to allow me to ...

More details

I forgot about this

Fame at last.... Recent Django blog entry Yay!

More details

Django fun

Well, I've been meaning to get round to making the site for Reynard City and I'd been planning to try and do it in Django. I'd made a start the other week by making a quiz engine (which doesn't work too well at the moment) but I thought I'd spend a bit of time over the weekend trying to get a site together.

It took me a while to get into it, but I've managed to make a nice-ish template, a news section (with RSS and ATOM feeds and comments on the news items), an articles section (where I predict much of the content will live) and the aforementioned quiz section. Obviously there is still a fair amount left to go, but I feel I've made a reasonable start on it, which is good, as I feel I was lagging a bit on it.

I've been enjoying using Django. Strangely the templating system has been the thing that has impressed me the most. I'm not sure if this is because I've never used a templating language other than Smarty of if it's just because the Django templating language is so well written, most likely the latter.

More details