I am trying to loop over a product list{more so a queryset} in django using for 
loop, by adding the range of products The following code works when printed out 
in cmd prompt

I am doing something like this

'''

for card in allproduct[nextRangePage:limit]:

'''

 in django template using this

'''

{% for card in allproduct[{%'nextRangePage'%}:{%'limit'%}] %}

'''

it gives the following the error:

```

*django.template.exceptions.TemplateSyntaxError: Could not parse the remainder: 
'[{%'nextRangePage'' from 'allproduct[{%'nextRangePage''*

```

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/a6985266-a1db-4a86-a089-6216ffd40054%40googlegroups.com.

Reply via email to