Added proper backend and middleware for Django