У нас вы можете посмотреть бесплатно Django Template Filters - pluralize filter или скачать в максимальном доступном качестве, видео которое было загружено на ютуб. Для загрузки выберите вариант из формы ниже:
Если кнопки скачивания не
загрузились
НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если возникают проблемы со скачиванием видео, пожалуйста напишите в поддержку по адресу внизу
страницы.
Спасибо за использование сервиса ClipSaver.ru
In this video, we look at the "pluralize" template filter in Django. This can be used to add a suffix to the pluralized form of a word, for example converting "message" to "messages". The plural is applied depending on whether a numerical context value is 1 (singular, no plural) or otherwise (plural form). We see how to add custom suffixes for plurals (for example "library" to "libraries") where simply adding a "s" to the end of the word will not work. 📌 𝗖𝗵𝗮𝗽𝘁𝗲𝗿𝘀: 00:00 Intro 02:20 Fixing the problem with template conditionals 03:04 Using Django’s pluralise filter 04:05 Defining alternative pluralize suffixes 05:49 Defining alternative singular and plural suffixes ☕️ 𝗕𝘂𝘆 𝗺𝗲 𝗮 𝗰𝗼𝗳𝗳𝗲𝗲: To support the channel and encourage new videos, please consider buying me a coffee here: https://ko-fi.com/bugbytes ▶️ Full Playlist: • Django Primers 𝗦𝗼𝗰𝗶𝗮𝗹 𝗠𝗲𝗱𝗶𝗮: 📖 Blog: https://bugbytes.io/posts/ 👾 Github: https://github.com/bugbytes-io/ 🐦 Twitter: / bugbytesio 📚 𝗙𝘂𝗿𝘁𝗵𝗲𝗿 𝗿𝗲𝗮𝗱𝗶𝗻𝗴 𝗮𝗻𝗱 𝗶𝗻𝗳𝗼𝗿𝗺𝗮𝘁𝗶𝗼𝗻: pluralize: https://docs.djangoproject.com/en/4.1... #django #python