EuroPython 2015

TDD for web development, from scratch

The aim is to cover the basics of setting up a simple Django site, but using full, rigorous TDD at every step along the way.

The tutorial is based on the first few chapters of my book, which is available (for free!) online for you to follow up with after the session, so that you can embed what you’ve learned.

We’ll learn:

  • how to set up functional tests with Selenium
  • how to set up Django
  • how to run Django unit tests
  • how TDD actually works in practice: the unit test / code cycle where we re-run the tests after each tiny, incremental change to the code
  • all the basics of Django like views, models and templates.

We’ll talk about what to test, what not to test, what the point of all this testing is anyway, you’ll get a real hands-on feeling for how it works, and I promise to make it all at least moderately entertaining!

And it’s all in Python 3 :)

Please come prepared! you’ll need:

  • Python 3.4
  • Firefox
  • Django 1.8
  • Selenium

You’ll find full instructions here – do email me if you have any problems, I’m happy to help.

in on Friday 24 July at 11:00 See schedule
in on Friday 24 July at 11:00 See schedule


  1. Gravatar
    Hi Harry

    I'm a newbie in Python and I wonder if this training requires any Python knowledge?
    I have programming experience, and I've been going through some online tutorials regarding Python.
    Do you believe that's enough to attend your training?

    — Elías Pétursson,
  2. Gravatar
    Hi there,

    It's not accepted yet!

    but if it does go through, you should be OK. If you have other programming experienced and have had time to do a couple of python tutorials, you won't be a *total* beginner. I would also recommend having a go at the official django tutorial, or the excellent djangogirls tutorial...

    — Harry Percival,

New comment