Integrating the view with django