Evgenii Legotckoi
March 21, 2023, 4:17 a.m.

DjangoDjango - 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 …

Read
Evgenii Legotckoi
Feb. 26, 2019, 4:22 p.m.

C++Using SFINAE to specialize template methods, depending on the type of container std::map or std::vector, passed as an argument

SFINAE, C++17, template

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 …

Read
Lila25mila
Jan. 28, 2019, 12:19 p.m.

DjangoUsing 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 …

Read
Evgenii Legotckoi
Jan. 5, 2019, 8:49 p.m.

DjangoDjango - 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 …

Read
Evgenii Legotckoi
Aug. 6, 2018, 12:52 p.m.

C++The idiom RAII and the principle of structured programming that a function must have one entry point and one exit point

template, lambda, C++11

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 …

Read
Evgenii Legotckoi
July 5, 2018, 1:05 p.m.

DjangoDjango - 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 …

Read
Evgenii Legotckoi
Sept. 18, 2016, 1:41 p.m.

DjangoDjango - Tutorial 003. Model, Template, View on Django

template, model, view

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 …

Read
  • Last comments
  • AK
    April 1, 2025, 11:41 a.m.
    Добрый день. В данный момент работаю над проектом, где необходимо выводить звук из программы в определенное аудиоустройство (колонки, наушники, виртуальный кабель и т.д). Пишу на Qt5.12.12 поско…
  • Evgenii Legotckoi
    March 9, 2025, 9:02 p.m.
    К сожалению, я этого подсказать не могу, поскольку у меня нет необходимости в обходе блокировок и т.д. Поэтому я и не задавался решением этой проблемы. Ну выглядит так, что вам действитель…
  • VP
    March 9, 2025, 4:14 p.m.
    Здравствуйте! Я устанавливал Qt6 из исходников а также Qt Creator по отдельности. Все компоненты, связанные с разработкой для Android, установлены. Кроме одного... Когда пытаюсь скомпилиров…
  • ИМ
    Nov. 22, 2024, 9:51 p.m.
    Добрый вечер Евгений! Я сделал себе авторизацию аналогичную вашей, все работает, кроме возврата к предидущей странице. Редеректит всегда на главную, хотя в логах сервера вижу запросы на правильн…
  • Evgenii Legotckoi
    Oct. 31, 2024, 11:37 p.m.
    Добрый день. Да, можно. Либо через такие же плагины, либо с постобработкой через python библиотеку Beautiful Soup