Django → Django - Lesson 062. How to write a block-template tabbar tag like the blocktranslate tag
tag, templatetags, Django, Django 3, Django 4, template
In this article, I'll show you exactly how you can write a simple block template tag, like the blocktranslate tag in Django .
These block template tags have an opening tag and a closing tag, and the most common one …
C++ → Using SFINAE to specialize template methods, depending on the type of container std::map or std::vector, passed as an argument
There was a problem: "write the second implementation of the template function", in which the same arguments are passed. That is, the signature of both functions completely coincides. The difference is that, as an argument, the std::vector containers and the …
Django → Using Jinja2 with Django (since 1.8)
Django, jinja, Python, template
On the Medium Corporation resource, a user named Samu shares his experience using Jinja2.
According to him, he previously used Jinja2 in his projects built with Flask. But then I decided to use Jinja2 with Django for potential performance gains …
Django → Django - Tutorial 042. Caching templates for different types of content
templatetags, template, Django
In Django - Lesson 035. Different templates for rendering different types of content in search results it was shown how to render different templates depending on what type of content drawn in the search results on the site. In this …
C++ → The idiom RAII and the principle of structured programming that a function must have one entry point and one exit point
The world of programming in C ++ in the new standards allows us to get up a variety of things, thanks to which we can safely abandon some old statements or principles, or simply flexibly approach these principles.
I would …
Django → Django - Tutorial 035. Different templates for rendering different types of content in the search results
Django, template, content, Search
Constant visitors of the site who use the search on the site, probably noticed that the display of articles differs from displaying comments in the search engine issue of the site. This was achieved by the fact that each content …
Django → Django - Tutorial 003. Model, Template, View on Django
In Django uses a modular system of applications, where one application is composed of several applications, each responsible for its functionality. As you have noticed, at the time of this writing, the site has a section "Knowledge", in which there …
- Last comments
- AKApril 1, 2025, 11:41 a.m.Добрый день. В данный момент работаю над проектом, где необходимо выводить звук из программы в определенное аудиоустройство (колонки, наушники, виртуальный кабель и т.д). Пишу на Qt5.12.12 поско…
- VPMarch 9, 2025, 4:14 p.m.Здравствуйте! Я устанавливал Qt6 из исходников а также Qt Creator по отдельности. Все компоненты, связанные с разработкой для Android, установлены. Кроме одного... Когда пытаюсь скомпилиров…
- ИМNov. 22, 2024, 9:51 p.m.Добрый вечер Евгений! Я сделал себе авторизацию аналогичную вашей, все работает, кроме возврата к предидущей странице. Редеректит всегда на главную, хотя в логах сервера вижу запросы на правильн…
- Now discuss on the forum
- МАApril 1, 2025, 4:21 p.m.0ff763fe-4e50-455d-a3a6-5699c243b1a5_17_44_22_1.xml
- fFeb. 15, 2025, 1:46 p.m.Подскажите, пожалуйста! Как данный класс можно дополнить, чтобы созданные объекты можно было перемещать мышкой по сцене?
- Не запускается компьютер (точнее работает блок , но сам монитор вообще жесть)В общем я ничего с интернета не скачивала в последнее время. На компе никаких левых пр…
- Вопрос решен. Узнать QModelIndex элемента на который мы перетаскиваем другой элемент, можно с помощью функции indexAt(event->position().toPoint()) представления QTreeViev вызываемой в переопр…