
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 → Django переводы фраз JavaScript файлов
Столкнулся с проблеммой некоторых библиотек javascript файлов. Мне нужно что бы переводы работали и в них. Выполнив инструкции из
документации
ничего не получаю.
Помогите разобраться с этим?

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 …

Django → Мультиязычность Django
Интересует меня такой вопрос. При работе с датой в шаблоне с использованием тега timesince что идёт с джангой. При переключении языка на русский оно не переводится. То есть как было 55 minutes так и осталось.
Как это исправить чтоб оно тоже переводил ось?
Django → Правильный запуск сервера на vps - Django
Работаю над проектом, нужно будет его поднять на VPS, Debian, недавно где-то читал что запускать сервер через просто runserver - не правильно, это не оптимизированно и лучше использовать только для тестов. Вопрос, как правильно будет его запускать на впске? p.s. Сервер на ASGI будет.

Django → Подсчет суммы баллов в Django
Создаются вопросы с выбором ответа, в модели решил создать к каждому выбору ответа определенный балл.. Теперь как мне сделать общий подсчет баллов в конце опроса, например по нажатию на кнопку, просто сумма баллов?
На форму выводятся все вопросы из бд
Что-то типо таког…

Django → Django MPTT вывод дерева категорий
Здраствуйте похоже я так и не понял всю суть Django-MPTT батарейки. Так как не могу решить простую задачу с выводом категорий. По этому обращаюсь к вам за помощью.
Начну с начала. Изначально я пытался сделать древовидную структуру просто в Django, но просидев до утра понял что оно того не…

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 → Получить текущего пользователя в своём менеджере модели
Здравствуйте!
В общем суть вопроса вроде как ясна из заголовка.
Допустим у меня есть модель Article
class Article(models.Model): user = models.ForeignKey(User, on_delete=models.CASCADE, null=True, default=User) title = models.CharField('Title', max_length=50) ........ …
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