These answers didn't help:

1. [Getting correct local time zone to display for end-users in Django web app](https://stackoverflow.com/questions/30439119/getting-correct-local-time-zone-to-display-for-end-users-in-django-web-app)
2. [Django different timezones in same application](https://stackoverflow.com/questions/47135190/django-different-timezones-in-same-application)

All datetime data is stored in UTC in my database. 

I would like each of my users to see the datetime in their local timezone instead of UTC. I've tried the code below:

**settings.py** 

```
TIME_ZONE = 'UTC'

USE_TZ = True

```

**views.py**

```
from django.shortcuts import render
from home_app import models
from django.utils import timezone
import pytz

def home_view(request):
    timezone.activate(pytz.timezone('Asia/Kolkata'))
    sample_queryset = models.TimeModel.objects.all()
    return render(request, 'home/home.html', {'sample_queryset': sample_queryset,})

```

**home.html**

```
{% for row in sample_queryset %}
    {% load tz %}
    {% localtime on %}
    {{ row.time }}
    {% endlocaltime %}
{% endfor %}

```

**models.py**

```
from django.db import models

class TimeModel(models.Model):
    sample_text = models.CharField(max_length=255)
    time = models.DateTimeField(auto_now=True)

    def __str__(self):
        return str(self.time) + ' ' + self.sample_text

```

However, after all, the same UTC time from the database is being printed.

**Other details:** 

Django 1.11

SQLite (for now; will use Postgres in production)

Python 3.6.8