Added a test file to test without the need of django. Corrected the django view.