You've defined two views which pass in different querysets to be rendered.

so if you hit index, you get the first queryset rendered but not the second 
because newstest1 is not rendered at all.  and vice versa.

solution is to add newstest1 to index and pass both querysets as context to 
the render.  eg

return render(request, 'news/index.html', {'newstest': newstest, 
'newstest1': newstest1})

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/6ebc2322-5bb5-4809-a6f3-1adf94e92168%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to