Logo

dev-resources.site

for different kinds of informations.

TemplateSyntaxError: 'with' expected with atleast one variable assignment

Published at
5/28/2023
Categories
Author
Gilbert Ngeno
Categories
1 categories in total
open
TemplateSyntaxError: 'with' expected with atleast one variable assignment

I am trying to send the data of a meeting object from template to view via GET method. To give the attribute meeting.date a simpler alias i.e date I am using the with template tag. But it ends up with a TemplateSyntaxError.

urls.py

url(r'^meeting/$', meeting_display, name="meeting"),

views.py

def meeting_display(request):
    date
…

Featured ones: