code: def with_tz(request):
      
      
      dt = datetime.now() 
      t = Template('{% load tz %}{% localtime on %}{% get_current_timezone as TIME_ZONE %}{{ TIME_ZONE }}{% endlocaltime %}') 
      c = RequestContext(request)
      response = t.render(c)
      return HttpResponse(response)
docs: Get the time with TZ enabled