B
B
BEKa T2019-05-11 14:28:13
Django
BEKa T, 2019-05-11 14:28:13

How to filter the value of a variable in a template?

How to get a table from the database with a specific ID, title, etc.
Like this{% if posts.id == 1 %}

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Konstantin Malyarov, 2019-05-11
@Konstantin18ko

I would recommend using DRF for a large number of IDs, or filtering in views for a small number of IDs.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question