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''
```