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

Python Decorators for Djangonauts

If you’ve used Django for any amount of time then you’ve probably come across decorators.  They’re the things with the @ signs over the top of your view. The first one you’re likely to see is the @login_required decorator, which requires a user to be logged in before the view will run.  If they are […]

FacebookTwitterGoogle+LinkedInRedditStumbleUponShare

September 24, 2010, Django Python Web Development
Django quick tips – using template filters in your views

Django has some very useful template filters, like slugify, which turns a string with spaces into a suitable url slug, and title, which turns any string into title case. Have you ever wanted to use these in your views? All you need to do is add this import: from django.template.defaultfilters import * You can replace […]

FacebookTwitterGoogle+LinkedInRedditStumbleUponShare

September 21, 2010, Django Web Development
Organising your Django code

There are several options when it comes to organising your code in a Django project.  There isn’t a ‘correct’ way, and it will depend on the size of the project, if it is a team development, or purely the preference of the developer. Templates Django gives you the ability to put your templates anywhere, either […]

FacebookTwitterGoogle+LinkedInRedditStumbleUponShare

August 29, 2010, Django Web Development
JMeter testing from the command line

I recently did a video post about website stress testing using JMeter.  Moving on from this, I’m going to show you how you can run JMeter tests from the command line, without using the GUI. Why use the command line? The main reason to use the command line is the most obvious: you don’t have […]

FacebookTwitterGoogle+LinkedInRedditStumbleUponShare

August 17, 2010, Testing Web Development
New Django Site – Blog Twin

I created Blog Twin after reading a blog post by Viper Chill entitled The Secret to growing your blog twice as fast with half the effort, I decided to create a site that would help people find a blogging partner. Blog Twin is written in Django (naturally!).  You register, add details of your blog, and […]

FacebookTwitterGoogle+LinkedInRedditStumbleUponShare

May 9, 2010, Django Web Development