R
R
Ruben Harutyunov2014-03-01 13:12:52
Django
Ruben Harutyunov, 2014-03-01 13:12:52

How to make an article summary on the front page in Django?

Hello, I just started learning Django. I read this article and did everything as written there, but the question arose how to make a short presentation of the article on the main page (in post_list). That is, make sure that only part of the article is displayed in the list of articles, and the entire article can be viewed by going to the article page.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey K, 2014-03-01
@K_DOT

You need truncatechars or truncatewords template filters:
https://docs.djangoproject.com/en/1.6/ref/template...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question