I want to create multiple context object in django views

2.8k Views Asked by At
def claim(request):
    entries = Child_Info.objects.all()
    ctx = { 'entries' : entries }
    return render_to_response('myapp/claim.html', ctx)

How to pass more than one context here?

1

There are 1 best solutions below

1
On BEST ANSWER

Why would you want more than one context? ctx is a dictionary, you can have as many items as you like in it.