Evgenij LegotskojSept. 5, 2022, 3:45 a.m.

Analysis of errors in the development and promotion of a site on Django - Custom tag<cut>

And now some thoughts on the topic of custom tags, and whether they should be introduced at all.

The short answer is NO.

Now let's think about this topic - "Why?" . There is such a well-known Russian-language resource Habr, who remembers, it was originally also called Habrahabr. So they added a custom XML tag<cut> , which cut off the part of the article that was supposed to go in the preview, and the other part was hidden in the article preview. Thus, the user "removed the article under the cut" . At first glance, it is quite a good solution for the user to decide what should be in the article preview so that the article attracts attention in the site's news feed. On the other hand, how many times could you see comments: "Author, take the article under the cut!" . And here lies the main problem, in my opinion. After all, if an ordinary user needs to be constantly reminded of some basic functionality of the site in order for him to use it, then something is already wrong here.

Of course, Habr can afford to use such a tag, since he has developed and formed a community that monitors the implementation of such conventions. But if you are developing a small site that is not yet so famous, then maybe you should not add extra work to yourself? Think for yourself, because you will be the person who will constantly remind users to use<cut> . Either you will correct the articles yourself or write an automatic addition of a tag after a couple of paragraphs.

In fact, this is a waste of time. Personally, I regret that I wasted my time working on such functionality. After all, Django has a truncatewords_html tag in the template engine that allows you to truncate a certain number of words of content and closes all tags properly. In this case, even images can get into the preview of the article. So why not use a ready-made solution? After all, whoever really wants to show a picture in a preview will add it to the beginning of the article and everything will look as it should. In general, whoever really needs it will figure it out. And forcing the user to use such specific functionality for the most basic actions, like writing a post on the site, is not the best idea.

And what useless custom tags did you introduce?

We recommend hosting TIMEWEB
We recommend hosting TIMEWEB
Stable hosting, on which the social network EVILEG is located. For projects on Django we recommend VDS hosting.
Support the author Donate

Исправте пожалуйста название тега

truncatehtml_words

на

truncatewords_html

Исправил, спасибо

Comments

Only authorized users can post comments.
Please, Log in or Sign up
Fornex

Let me recommend you a great European Fornex hosting.

Fornex has proven itself to be a stable host over the years.

For Django projects I recommend VPS hosting

Following the link you will receive a 5% discount on shared hosting services, dedicated servers, VPS and VPN

View Hosting
SK

Qt - Test 001. Signals and slots

  • Result:47points,
  • Rating points-6
VA

C++ - Test 001. The first program and data types

  • Result:13points,
  • Rating points-10
M
  • Maks
  • Sept. 18, 2022, 7:04 a.m.

C ++ - Test 004. Pointers, Arrays and Loops

  • Result:70points,
  • Rating points1
Last comments
F

Engineering solution of a cubic equation using Vieta&#39;s trigonometric formula

красивое домашнее порно анал https://sexs-foto.com/ порно молодых русских бесплатно без регистрации порно знакомства онлайн порно блондинка с большой попой …

Qt/C++ - Lesson 035. Downloading files via HTTP with QNetworkAccessManager

Попробуйте просто вызвать метод getData в конструкторе класса

Qt/C++ - Lesson 035. Downloading files via HTTP with QNetworkAccessManager

Здравствуйте! Подскажите, пожалуйста, как сделать так, чтобы программа срабатыала без нажатия кнопки? Ну чисто при загрузке формы... Я так понимаю, надо что-то поменять в этой строчке con…
R5

Qt/C++ - Lesson 051. QMediaPlayer – simple audio player

Здравствуйте. Подскажите пожалуйста, как решить проблему multimedia модуль не распознается

Qt/C++ - Lesson 009. QTimer – How to work with timer?

Да, именно так. Но в коде без this написано - это ошибка в статье.
Now discuss on the forum
AB

Sorting the added QML elements in the ListModel

I am writing an alarm clock in QML, I am required to sort the alarms in ascending order (depending on the date or time (if there are several alarms on the same day). I've done the sorting …

Вопрос по Qt Creator

Добрый день. Не знаю, подобную проблему я не решал.

Задать другой класс div-у

Добрый день. Попробуйте использовать Selenium. Это библиотека есть в виде Python модуля и она позволяет загружать страницу и манипулировать html элементами. Как я понимаю, в ней можно…
ACh

Списки на QML

Вопрос решен с применением базы данных. Кому интересно, можете поюзать проект:) Отдельное спасибо Евгению за помощь)))Вход под админом Логин:1, пароль:1Вход под диспетчером Логин:22, пароль:2Вх…

Хочу переместить QMenuBar

Просто взять и заменить в пару строчек не получится. Qt предусматривает крайне ограниченный функционал по работе с обрамлением окон, к которому относится заголовок окна. Вообще это фу…
About
Services
© EVILEG 2015-2022
Recommend hosting TIMEWEB