templates and Views

34 views
Skip to first unread message

abdouramane mahamane

unread,
Feb 18, 2019, 10:15:05 AM2/18/19
to Django users
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 

mohamed khaled

unread,
Feb 18, 2019, 4:55:24 PM2/18/19
to Django users

abdouramane mahamane

unread,
Feb 19, 2019, 5:21:10 AM2/19/19
to Django users
Thank you so much, for this reply that solves my problem :)

abdouramane mahamane

unread,
Feb 19, 2019, 5:21:38 AM2/19/19
to Django users
Thank you so much, for this reply that solves my problem :)

Reply all
Reply to author
Forward
0 new messages