/home/alex/
  • Home
  • GitHub
  • CV

Django app structure that I favor.

a year ago 1 min read djangopython
Instead of having all views in one file I separate components by domain and put each in the own python package (represented as a directory). If you are familiar with DDD terminology, then
Read Now Read Later
Alex Oleshkevich
By: Alex Oleshkevich

Business logic in Django and Django REST Framework applications

a year ago 5 min read djangopython
TLDR; As a general rule, no view function/class should contain any kind of business logic. By business logic, we mean any code that implements a feature or a story. IntroductionDjango and Django
Read Now Read Later
Alex Oleshkevich
By: Alex Oleshkevich
How to group rows by time in PostgreSQL (and in Django)

How to group rows by time in PostgreSQL (and in Django)

2 years ago 2 min read djangopythonsqlpostgresqltutorial
Sometimes you need to group rows by a time interval, say, one value per minute, or per hour. In this post I will share how you can achieve it with vanilla PostgreSQL and
Read Now Read Later
Alex Oleshkevich
By: Alex Oleshkevich

WebSockets in Django 3.1

2 years ago 8 min read djangopythonwebsockets
In this post, I will guide you on how to enable WebSockets in your Django application without installing third-party apps. Django has introduced the ASGI interface since version 3.0 and async views
Read Now Read Later
Alex Oleshkevich
By: Alex Oleshkevich
Page 1 of 1
Powered by Ghost
/home/alex/