A
A
AlexBoss2019-06-19 12:55:56
Django
AlexBoss, 2019-06-19 12:55:56

How to parse a list in a template in Django?

Good afternoon. I pass a list to the index.html template, in which the lines. Through "for" I sort through them and I deduce. Can I somehow cut the string already directly in the template from the series a[5:20]? I can’t do this at the moment, just divide by comma or so.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Gornostaev, 2019-06-19
@AlexBoss

You can .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question