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 […]
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 […]
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 […]
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 […]
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 […]
Here’s my latest screencast, showing you how to stress test your website and web applications using JMeter.