Why not update data in django templates?

There is a page on which data are displayed: the sum of columns from a single table using aggregator. After adding the data in the database changes on page does not occur, changes proiskhodyat only after the overload of the project. The templating engine of django.
#view.py
from .model import Video as video
def static_index(request):
 sum = video.objects.aggregate(Sum('chanters')) 
 return render(request, 'index.html',{
'sum': sum
})
#index.html
{{ sum }}

#model.py
class Video(models.Model):
 owner = models.ForeignKey(User, default='1')
 video = models.CharField(max_length=250, unique=True)
July 9th 19 at 13:19
1 answer
July 9th 19 at 13:21
{{ sum }} replace to {{ sumchanters }} in the index
Sorry, made a mistake when porting the code here, in the original there is no error. - hailee20 commented on July 9th 19 at 13:24
: after adding data to the database the page refreshes and there is an old amount? then overload the project (migrate) refreshes the page and the amount of new.so? - Karine.Greenfelder commented on July 9th 19 at 13:27
: Yes, exactly - hailee20 commented on July 9th 19 at 13:30
how to add data manually or Python? DB_NAME.save() doing? - Karine.Greenfelder commented on July 9th 19 at 13:33
: using standard django admin - hailee20 commented on July 9th 19 at 13:36
: didn't use the standard admin. sorry to have wasted Your time. - Karine.Greenfelder commented on July 9th 19 at 13:39

Find more questions by tags Django