
Evgenij Legotskoj
EVILEG
- 33
- 0

Django → django_model_cached_property - Caching property for individual model objects in Django
cache, model_cached_property, invalidate, redis, Python 3, Django
Introducing the release of the stable battery django_model_cached_property for caching property for individual model objects in Django.
I already said that evileg_core contains similar functionality, but now I decided to bring this caching into a separate package. This is due …

Django → 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, …

Django → Analysis of errors in the development and promotion of a site on Django - Multilingual forms
forms, Мультиязычноть, Django, Translations
With this publication, I would like to start sharing my observations after almost seven years of supporting the EVILEG project. So that every newbie could roughly understand and imagine whether it is worth doing a similar or different functionality or …

C++ → Leet Code Solutions - 003 - Longest Substring Without Repeating Characters
cpp, LeetCode, C++, C++17, string
Solution "Longest Substring Without Repeating Characters" on Leet Code
class Solution { public: int lengthOfLongestSubstring(string s) { string candidate_str = ""; string checking_str = ""; size_t position = std::string::npos; for (auto& ch : s) { position = checking_str.find(ch); if (position …

C++ → Leed Code Solutions - 002 - Add Two Numbers
Solution "Add Two Numbers" on Leet Code
/** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNode() : val(0), next(nullptr) {} * ListNode(int x) : val(x), next(nullptr) {} * ListNode(int x, ListNode …

C++ → Leet Code Solutions - 001 - Two Sum

Django → Django - Lesson 059. Saving the selected language in user settings
python, language, django, translation
In this article, I would like to show an example of how you can make a link on the site so that the user can switch between languages on the site.
But I will show a more advanced version of …

Django → Django - Tutorial 058. Database Growth Due to django_session Table
Django, Postgres, garbage collection, Python, PostgreSQL
Lately, I have noticed that the fatal moment is approaching, when the disk space for the site on the hosting will catastrophically cease to be enough. And the database dump becomes incredibly huge, although there are no obvious prerequisites for …

Django → Django Rest Framework - Tutorial 001. Adding Token Authentication
Django Rest Framework, QML, Authentication, Token, drf, Felgo
At the moment I am actively working on an application that will work with the REST API of a Django site. And one of the first steps was to set up user authentication by token, but in order for this …

Django → Django - Lesson 057. Multilanguage support in MarkdownField with auto populate functionality
MarkdownField, markdown, modeltranslation, Django
The article How to write auto populate field functionality described the simplest functionality of the MarkdownField field to support markdown syntax on a site with automatic generation of html content.
I did not immediately show advanced functionality to make it …
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