1👍
You could add a new key/value pair to your dictionary like this:
k['new']='newcontent'
Hope this helps.
0👍
def view(request):
lista_baza = Usluga.objects.all()
k= {
'lista_uslug': lista_baza
}
k['new'] = 'your context'
return render(request, 'main.html', k)
- [Answer]-Django Sorting a List inside a model
- [Answer]-Searching users computer for music and video files from browser
- [Answer]-Display a specific template when Django raises an exception
Source:stackexchange.com