Add middleware class.
Update sphinx conf file.
Add Django as a dependency.