coverting ASP.NET application to Django