Retour sur Sud Web 2013


Le 17 et 18 mai, en Avignon, avait lieu la troisième édition de Sud Web. C'est une conférence que j'affectionne tout particulièrement, ayant eu la chance de participer à son organisation à ses débuts.

Le format est le suivant : une première journée de présentations, courtes (5mn) et longues (20mn + 5mn …

Configurer Emacs comme un développeur Python


Introduction

Souvent on me demande quel IDE j'utilise. Quand je réponds emacs, ça ne semble pas convenir à mon interlocuteur.

Voici un petit article pour transformer son emacs en véritable IDE python.

Quand je code en Python, j'ai envie de respecter la PEP-8, d'avoir la complétion des noms de fonctions …

Class-based decorators with Python


A Python decorator is, basically, a function that take a function as argument and return a function. This is a powerful feature. But it has some drawbacks:

  • decorators are quite tricky to develop. Of course they are for Python newbies. But, as an experienced Python developer, I must admit I …

Testing Django decorators


How to test view decorators of Django applications? Here are some tips.

In a post before, I recommended to avoid decorating views in place (i.e. not in views.py). Once decorators and views are separated, we can unit test the views. That was the topic of the post before …

A Django testing challenge


Here at Novapost, we have quite large Django projects. Big projects mean big maintenance. Hopefully, those projects are covered by tests. Thousands of tests. We are quite proud of this fact. Tests save our lives. But we also have some worries and need to improve... Here is our testing challenge …

Unit test your Django views


How to test views of a Django application?

Django's builtin test client is not suitable for unit testing! It performs system tests: it handles your views as a black box in a project's environment.

This article provides a recipe for developers to replace Django's builtin test client by smaller, fine-grained …

4 / 7