I'm trying to show in one template .html multiple results of  my views.py 
class.
But when i add an other {%block content2 %} in my base.html, i have an 
error.
Because i have the same url 
path('partenaire/', views.OffrePListView.as_view(), name='offreListP'),
path('partenaire/', views.BaseViewP.as_view(), name='showP'),

now i have this 
path('partenaire/', views.OffrePListView.as_view(), name='offreListP'),
path('partenaire/show', views.BaseViewP.as_view(), name='showP'),

I want to show many things in one template by using many "contexts".

thanks 

-- 
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/8ce80905-5986-4d91-9567-7377a5cce7b7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to