added django code for testing