This reverts commit 154f5f0d. Aymeric: "I chose not to talk about django.setup() here on purpose. This will hardly always be the correct solution." Backport of 8121860b from master