Nov. 3, 2019, 4:03 a.m.

Django

ESNF-C, Django, model_cached_property, EVILEG

To speed up the site, in addition to optimizing database queries, you can use caching.

Django allows you to cache:

  • individual view , both Class Based View , and ordinary functions view
  • whole templates or parts of these templates
  • QuerySet
  • as well as properties of model objects using cached_property

I was interested in the ability to cache individual properties of model objects for heavy computing or heavy database queries.
The cached_property decorator has such a functional, but the drawback for me was that caching occurred only for the lifetime of the object.
Whereas I need caching for a longer period of time than the existence of an object when requesting a page. And also I needed to cache properties depending on the input arguments. This decorator on the site caches the number of likes and dislikes, as well as information about whether the current user liked a particular content object.

Thus the decorator model_cached_property was written

Oct. 27, 2019, 4:56 a.m.

Django

Google, reCAPTCHA, EVILEG, CORE, ESNF-C

This will be the first article on the use of a set of established utilities that are present in the core of the EVILEG site. This part of the site’s program code is in open source, so I want to talk about what functionality is present in this battery and how to use it.

I'll start by using Google reCAPTCHA , and what is required to quickly implement this functionality.

Oct. 7, 2019, 1:42 a.m.

EVILEG

ESNF-C, EVILEG

After about 5 months of refinement of the site, I release a more elaborate version of the evileg_core package.

This release includes both new functions and utilities, and the old functionality has been finalized. For example, Markdown field behavior has been improved. Initially, EMarkdownField drastically reduced content rendering performance, but the problem was identified and resolved.

May 11, 2019, 11:37 a.m.

EVILEG

ESNF-C, EVILEG

Good day! I am happy to present the first release of the EVILEG Social Network Framework - Core (ESNF-C).

The release is version 0.0.3. I successfully spent the first two versions on setting up the release in PyPi so that I could install the package not only from the repository or manually build it, but I would use the opportunity to install it through the pip utility.

pip install evileg_core
Dec. 9, 2018, 8:22 a.m.

EVILEG

EVILEG, markdown, ESNF-C

After lengthy attempts to cope with JavaScript and its glitches in different browsers, I refused to write a WYSIWYG editor.

Thanks to the community (a survey was conducted in the public in VKontakte), which also shares my point on this matter. Namely, it is better to add a normal Markdown editor than Wysiwig.

July 31, 2018, 2:56 a.m.

Django

ESNF-ICO, ESNF-DOC, ESNF-C, ESNF, ESNF-LD, Django, EVILEG

There was probably something that many users of the resource EVILEG would like to see among Web developers.

It was decided to open the sources of EVILEG, especially since I repeatedly received requests to show the source of the resource and even suggestions for the feasible improvement of the site code.

Thus, weighed all the pros and cons, I decided that sending the source code to EVILEG in Open Source is not such a bad idea.

Donate

Hello, Dear Users of EVILEG!!!

If the site helped you, then support the development of the site financially, please.

You can do it by following ways:

Thank you, Evgenii Legotckoi

AS
Dec. 13, 2019, 6:05 a.m.
Aruzhan Seraliyeva

C++ - Тест 003. Условия и циклы

  • Result:50points,
  • Rating points-4
AS
Dec. 13, 2019, 5:47 a.m.
Aruzhan Seraliyeva

C++ - Test 001. The first program and data types

  • Result:40points,
  • Rating points-8
T
Dec. 11, 2019, 4:56 p.m.
Toma

C++ - Тест 003. Условия и циклы

  • Result:50points,
  • Rating points-4
Last comments
Dec. 9, 2019, 3:41 a.m.
Evgenij Legotskoj

Эта ошибка invalid use of incomplete type ‘class Ui::AnotherWindow’ обычно говорит о том, что не найдено определение класса или структуры. Типичная проблема - не подключён заголовочны…
NB
Dec. 9, 2019, 3:36 a.m.
Nikolaj Batmanov

Ну, не настолько со мной всё полхо...))) Вроде бы. Я ж кнопки отрисовываю.
Dec. 9, 2019, 3:14 a.m.
Evgenij Legotskoj

Добрый день. У вас ui файлов по ходу нет. UI файлы используются для вёрстки в графическом дизайнере.
NB
Dec. 9, 2019, 3:05 a.m.
Nikolaj Batmanov

Здравствуйте! Полностью скопировал ваш пример к себе, чтобы разобраться. А он не хочет запускаться, дает ошибку: invalid use of incomplete type ‘class Ui::AnotherWindow’ ui(new Ui…
Dec. 8, 2019, 7:23 a.m.
Evgenij Legotskoj

У меня здесь есть одна старая статья с примером векторного редактора. Там есть ответы на ваши вопросы. Поизучайте Qt/C++ - Урок 072. Пример векторного редактора на Qt QGraphicsItem, QG…
Now discuss on the forum
t
Dec. 13, 2019, 5:17 p.m.
tantrido

Всё работает, при чём тут колхоз?! ;) https://doc.qt.io/qt-5/qtqml-cppintegration-data.html Если что-то не работает - вопрос к собственным рукам и знаниям. Вопрос не корректен - мож…
Dec. 13, 2019, 10:16 a.m.
Ruslan Volshebnik

Да, я посмотрел, вы абсолютно правы. Единственное, если я правильно понял, если срабатывает условие if (aggregates["max_id"] - aggregates["min_id"]) + 1 == aggregates["count"]: return sel…
t
Dec. 13, 2019, 9:53 a.m.
tantrido

Ответ >>
Dec. 13, 2019, 8:39 a.m.
Aleksandr Panjushkin

Вроде да. Только там начинаются вопросы с тем, чтобы виджет бы в фокусе, чтобы до виджета это событие долетало.
DK
Dec. 13, 2019, 7:48 a.m.
Dzhon Kofi

Привет. Есть класс "ждун", который используется на разных виджетах: class WaiterDialog;#define WAITER_DIALOG Singleton<WaiterDialog>::instance()class WaiterDialog : public QObject, …
EVILEG
About
Services
© EVILEG 2015-2019
Recommend hosting TIMEWEB