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
Adding Views to the Django Admin

I recently had to write a view that exported data to csv.  The view had to be contained within the Django admin area, on a separate page from the rest of the apps and models.  Here is the approach I took. The Urls There are 2 ways to add urls to the admin: the quick […]

FacebookTwitterGoogle+LinkedInRedditStumbleUponShare

March 13, 2010, Django
New Django Site – The Great British Sleep Survey

I’ve very recently finished a django based site for a company called Sleepio.  The project was to create a survey site, called the Great British Sleep Survey. Once completed, it calculates your sleep score and creates a report tailored to your issues (or lack of). Also working on the site, doing all the xhtml and […]

FacebookTwitterGoogle+LinkedInRedditStumbleUponShare

March 12, 2010, Django Featured
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
How to Call a .Net Webservice using Python

My day job involves working with software that automatically creates webservices on the .Net platform. Up until now I have used C# to create web applications to use these webservices. But it would be nice to have the flexibility to use another programming language to create a solutions, and consume the webservices from there. So, […]

FacebookTwitterGoogle+LinkedInRedditStumbleUponShare

January 1, 2009, Featured Python
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
Web 3.0 – How to put Semantic Tags in your Blog

I read the other day how Yahoo was going to start supporting semantic web standards. The semantic web is something that is often associated with Web 3.0 (if that’s what you want to call it!), and will allow greater data exchange, better and more targeted search, and generally open things up for a super mash-up. […]

FacebookTwitterGoogle+LinkedInRedditStumbleUponShare

March 15, 2008, Web 3