Beardy Geek – Web Development Blog

A blog about web development – giving tips and tutorials about all aspects of web dev.


Beardy Geek – Web Development Blog

Archives by category

Django Tips – Unique Date Querysets

I swear this particular feature of querysets was made especially for the archive listing of a blog. You know, the month and year listing in the side bar for all your previous posts. This solves that problem exactly. Let’s say you have a BlogPost model, and a post_date field within said model. You want a […]

FacebookTwitterGoogle+LinkedInRedditStumbleUponShare

February 16, 2009, Django
From WordPress to Django – Part 1

Now don’t get me wrong, there’s nothing wrong with WordPress. It’s just that I like to play with stuff, so I thought it would be fun to create a blog in Django, copy all my WordPress posts across, and add at least some of the functionality that WordPress has built in. Open Source Throughout this […]

FacebookTwitterGoogle+LinkedInRedditStumbleUponShare

January 14, 2009, Django
From WordPress to Django – Part 2

View Part 1 Beardy Geek Git Hub Repository Welcome back. In part 2 I’ll be getting to the meat of the issue, which is retrieving the data from an existing WordPress blog, and feeding the data into my own models. Models I’ve decided to start the models from scratch, rather than trying to copy the […]

FacebookTwitterGoogle+LinkedInRedditStumbleUponShare

January 1, 2009, Django
Django and Ajax – using Prototype and Scriptaculous

I started adding a sprinkling of Ajax in one of my Django projects, so I thought I’d share a few snippets that might help you add some Ajax goodness into your app. To handle the Ajax callbacks, I’ll be using Prototype, a lightweight Ajax library. And for a couple of effects, like fade-in, I’ll be […]

FacebookTwitterGoogle+LinkedInRedditStumbleUponShare

December 29, 2008, Ajax Django
Django Template Auto-completion in Eclipse

I’ve just recently started using Django and I wanted to set up an IDE for some coding niceties. I already use Eclipse for PHP development, so I installed the PyDev plugin for Eclipse. Now I get autocomplete in the py files, but when writing the Django html templates, there is no autocomplete for the various […]

FacebookTwitterGoogle+LinkedInRedditStumbleUponShare

November 19, 2008, Django
Creating User Profiles with Image Thumbnails in Django

I am currently working on a django application that will include a profile page for each user. Like many web apps, it will have the ability to upload a profile picture, and have this picture shrunk to a suitable thumbnail size. To complicate matters, I want the photo uploaded to a directory which will be […]

FacebookTwitterGoogle+LinkedInRedditStumbleUponShare

November 9, 2008, Django Featured