Advanced search
Evgenij LegotskojMay 4, 2020, 2:21 p.m.

DjangoDjango - Tutorial 053. Adding Counters to Models in the Django Admin Panel

admin, Django, python

The other day, I started working on a content moderation application on the site and solved the problem of adding counters in the administrative panel.

It looks like this now

The task itself is trivial, but as it turned out there is a nuance, without knowing which, this task will not work right away.

Maciej UrmańskiDec. 11, 2019, 6:27 a.m.

DjangoCount user objects e.g posts

python, Django

Hi, I try to get numbers of user post.

I have model Embed and try to count how many user add this embeds.

My model:

class Embed(models.Model):
    url = models.URLField(max_length=255)
    title = models.CharField(max_length=255, verbose_name='Tytuł')
    description = HTMLField…
Maciej UrmańskiNov. 3, 2019, 5:20 a.m.

DjangoDjango letter avatar like this on evileg

python, Django, django

I try many apps and none of this create that nice letter avatars and cover on profile page. It's app or custom work?

It's possible to get a code? :)

Maciej UrmańskiNov. 2, 2019, 3:22 p.m.

DjangoDjango follow unfollow

Django, django, python


I try to solve my problem. I have follow and unfollow button on profile page, and on this page button works but I need to create this button on other pages. My problem is to filter when user is in target or not.

On profile page I have code:

{% if profile_user.followed %}
Maciej UrmańskiMarch 10, 2019, 1:01 p.m.

DjangoDjango list of subscribed objects

django, Django, python

Hi, I try to show user object from category which they subscribe. But don't know exacly how.

I have four models:
Board ( category )
Embed and Subscribe (foreign to user and to board)

class Board(models.Model):
    title = models.CharField(max_length=255, verbose…
Maciej UrmańskiMarch 7, 2019, 5:01 a.m.

DjangoDjango rest framework and foreignkey

django, Django, python


I try to save foreign key in django restframework serializer.

My goal is to save in database information from and this part works good. But I need to also save it in specific category. After add field "Board(my category name field)" I have error: null value in colu…

Maciej UrmańskiFeb. 20, 2019, 9:11 a.m.

DjangoUser attendance in app

django, python, Django

Hi, i try to create list of users attendance in goal app.

But i don't know how to filter user.

I have Goal model:

class Goal(models.Model, Activity):
    title = models.CharField(max_length=255, verbose_name='Tytuł')
    image = ImageField(blank=True, verbose_name='Tło')
Maciej UrmańskiFeb. 4, 2019, 12:46 p.m.

DjangoDjango getstream integration problem

Django, django, python, python3

Hi, maybe this community help me.

I try integrate on my project. Following this code: I create most things like activity feed and notification but i don't know how to create a form to follow other people on profile page. (userdetai…

Lila25milaJan. 25, 2019, 3:28 a.m.

DjangoHow to use nested forms in Django

Django, python, formsets

Django Formsets manage complex repeating form fields in a view. Using the forms, you can find out how many forms were originally there, which ones have been changed, and which ones need to be deleted.
Like forms and form models, Django provides form model sets that simplify the task of creating a form set for a form that handles multiple model instances.

Evgenij LegotskojJan. 6, 2019, 7:48 a.m.

DjangoDjango - Tutorial 043. template tags to form breadcrumb with support

templatetags, Django, python

I share my implementation of built-in tags to form breadcrumbs with support for markup, as well as support for bootstrap css.

Wrote these tags to speed up site development speed. Now the work moves much faster, because the code has become more compact, and correcting errors in the breadcrumbs markup has become much easier, since now you only need to correct the code in one place.

Card image cap
Pulsum Via

Project for travelers from EVILEG.


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
Share on social networks

The EVILEG project has switched to a non-commercial basis and will develop solely on the enthusiasm of the site creator, the enthusiasm of users, donations and the hosting referral system

Thank you for your support

Available ways to support the project



C++ - Test 002. Constants

  • Result:50points,
  • Rating points-4

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

  • Result:66points,
  • Rating points-1

C++ - Test 002. Constants

  • Result:58points,
  • Rating points-2
Last comments

Qt/C++ - Lesson 061. Adding images to the application using the Drag And Drop method from the file manager

Доброго времени суток. А если нужно и изображение и текст? Что-то потерялся немного.... // Вместо отрисовки иконки и текста будем отрисовывать только одно изображение // с н…

Qt/C++ - Lesson 004. QSqlTableModel – How to present the table from database?

error insert into TableExample " Количество параметров не совпадает" Я путь свой прописывала и даже бд удаляла, чтобы заново сделать, не работает. (всё остальное как у вас... Вроде ка…

Qt/C++ - Lesson 042. PopUp notification in the Gnome style using Qt

cialis powder comprare cialis online

GameDev on Qt - Tutorial 1. Track mouse movement in QGraphicsScene

Вполне возможно, что ты не закинул graphicsView в дизайнере в виджет

GameDev on Qt - Tutorial 1. Track mouse movement in QGraphicsScene

Кому интересно, поворот в slotTarget можно в одну строку организовать this->setRotation(90 + rotation() + qRadiansToDegrees(qAtan2(mapFromScene(point).y(), mapFromScene(point).x())));
Now discuss on the forum

Sorting the added QML elements in the ListModel

buy accutane online forum
  • Nomad
  • July 30, 2022, 5:42 a.m.

Как работать с HTMX?

Приветствую колеги. На днях наткнулся на вот это : На офф сайте написанно вот такая фраза: htmx gives you access to AJAX, CSS Transitions, We…
  • harisr
  • July 25, 2022, 2:56 a.m.

QT - Native App Integration

Привет, у нас уже есть собственное приложение для Android. Можем ли мы интегрировать пользовательское представление QT в приложение со всем приложением QT внутри представления. Если да, ука…

Правильный запуск сервера на vps - Django

О я как то себе дома локальный сервер создавал. Вам же нужно просто сделать ручками конфигурацию системы. Настроить Nginx ну либо Apache (тут кому что нравится). Соответственно БД и всё остально…

Распознание объектов

Я к тому, что, возможно, софт уже есть.
© EVILEG 2015-2022
Recommend hosting TIMEWEB