Update middleware settings for Django 1.4.