A trick I learned for using someone else’s CSS without changing your HTML, or their CSS
How to use Sass/SCSS in a Django project, without needing Node.js/npm or running a build process
A response to Hillel Wayne’s “I am disappointed by dynamic typing”
How returning error objects can provide some advantages over raising exceptions in Python, such as for static type checking tools.
The flows I use for exploratory programming using a REPL and their advantages.
When using Django database models and adding a calculated property of some kind, you should probably ensure it will be efficient in bulk even if that isn’t needed yet.
Tips for winning the automated testing battle.
Announcement of my guide to writing Django Views.
How to implement the classic double-checked locking pattern with Django ORM/PostgreSQL.
OTP/TOTP for two factor auth (2FA/MFA) is very easy to misunderstand and implement insecurely
Some lessons from the recent WordPress vulnerability
Follow @djangoadmintips for curated tips about the Django admin
Why Django's GenericForeignKey is (usually) a bad idea
How to use ModelAdmin.get_actions with dynamically generated list of actions
A simple password-less login system to consider for some use cases, with Django code.
We need languages and systems that are less powerful, not more powerful, and easy ways to create and use such languages.
A way to use Class Based Views and avoid some of the problems with Django's versions.
Trickiness surrounding subclassing
Pretty much what it says in the title...
My reasons why I disapprove of gay marriage, but will treat those who disagree with me with all the respect and kindness I can.
Some attempts to solve the seating headache with software.
Using my programming skills for higher purposes, part 1
We should just introduce people to MVT
Some answers and questions on the subject of bundling copies of dependencies in a project
WebFaction should encourage a much better deployment process
Porting a Django app to Python 3
Some ideas about solving translation problems with computer generated text.
A complete WebView Android app, full screen, with a progress bar and back button that works as normal
With examples from the web development world especially PHP, and lessons for Pythonistas
Notes to self on how (not) to convince people.
A response to "Things you should test" by Noah Sussman.
Django's CBVs are complex, unpythonic solutions to simple problems, (IMHO :-), here's why.
I've probably written lots of blog posts on this, so I can't claim 'x' = 1, and I've no idea what 'y' is...
I launched my new Django Bible memorization site, LearnScripture.net
How to do logging calls to Sentry asynchronously (until Sentry gets UDP support).
Some tips for keeping your Django apps lean and mean from the beginning, using lessons from django-fiber,
A quickstart for deploying a Django project to a shared hosting system like WebFaction.
O gods of software development and operations, I have sinned. Your anger falls on me, and I feel your wrath...
Announcing django-easyfilters, a new library for Django, and a bit of heretical editorial about Django's ORM.
Writing good quality documentation for the software libraries you publish always matters. Otherwise, you are doing the world a disservice by publishing.
An app to help protect your customers' data when in development.
finally got round to cleaning up my Django validator app...
When assertNumQueries is overkill...
Class based views are very cool. I am starting to clean up an existing project using them, and lots of existing views are turning into declarative code. But it makes me worried about the ravioli effect.
Today I learned that JSON is much faster than YAML for use in Django fixtures...
Participating in any Open Source project can be frustrating if things do not move along as quickly as you would like. Django is a fairly popular project, whose developers are volunteers with limited resources, and with a pretty big commitment to stability and backwards compatibility, so there will always be people who get frustrated. This blog post is intended to help people in that situation be helpful, and to not actually make things worse.
How I set up Eclipse to work with an existing project using virtualenv
Based on my recent Haskell experience, I highlight some cases where I think static type checks provide a better testing mechanism than unit tests or other automated tests.
A review of "Django 1.0 Template Development" by Scott Newman, from Packt Publishing.
An article from Django 1.0 Template Development by Scott Newman, about how to output a document in multiple formats/styles using Django templates.
Beginnings of a Django-inspired Haskell web framework, Ella.
A simple way to use Mercurial Queues in a Subversion working directory to manage patches before committing to Subversion.
After reading that in Python 2.5 some big memory leaks are fixed, I just switched a Django site from Python 2.4 to Python 2.5. I wasn't disappointed -- the combined memory usage of my Apache processes (which are using mod_python) went from 100Mb to 60Mb. So, for anyone else wanted to conserve memory, this is the first thing I'd suggest!
Django newforms fixes lots of things...
I created a system and web app to help me organise my Bible memorisation. And I rant a bit Django and web.py.
How to use Twill within Django unit tests
I present below some example code for using Django, newforms and MochiKit to do AJAX validation, in case anyone else is doing the same, complete with a live demo...
I've updated my validator app to work with 'unicodised' Django...
I've updated my `validator app
`_ to latest Django trunk and finally done a release.
An attempt to debunk some of the '20 minute web app' hype that is so prevalent at the moment, and present a more realistic and balanced account of the Django site I have just finished.
Saw this gem by 'anonymous' on django-updates...
I've noticed in Python and in Django I almost always create a module or a template by starting with a completely empty file, and typing...
Using pychecker and pylint on Django – and each other...
Here is a not-too-awful hack to make the admin give different 'add/change' forms depending on who is using it.
Ever been refactoring code or HTML templates and wanted to compare two chunks of text? This is what you need if you use KDE...
I've released some small updates to my 'Django validator app' and 'CsrfMiddleware'...
Remembering the "Don't Repeat Yourself" mantra, the following apps would be awesome...
I wrote a quick Django application to help me develop compliant web sites, and put it together so it's easy to distribute...
I've implemented a module that provides protection against Cross Site Request Forgeries for Django - and as always with both Python and Django, I've got that "surely it can't be that easy" feeling...
Just discovered the Django web development framework, and I think I'm in love...