In this article, we’re going to cover quite an advanced topic in Django ORM. And after reading the article, you’re going to understand how Django ORM works a little bit better, especially how it handles…
Posts tagged python
What is WSGI and Why Do You Need Gunicorn and Nginx in Django
In this article, we’re going to talk about WSGI, Gunicorn, and Nginx. We will discuss why you need these things, and how they work together with Django. Here’s the video if you prefer watching over…
Introduction to SQLAlchemy ORM for Django Developers
I always used Django at work and for my personal projects. But on the recent project at work I had an opportunity to use Flask with SQLAlchemy. So I had to learn something new. Flask…
Django + Elasticsearch. Searching for awesome TED Talks
In the article we’re going to cover the basics of Elasticsearch: what it is, how to run it, how to communicate with it. Then, after we feel comfortable with Elasticsearch, we will start developing a…
Tale about Redis and sessions in Django
In this article we will learn the basics of Redis: what it is, how it stores data and what data structures it provides. Then we will take a look at session framework in Django. First…
Distributed systems with RabbitMQ
In this article, we’re going to talk about the benefits of distributed systems and how to move to distributed systems using RabbitMQ. Then we will learn the fundamentals of RabbitMQ and how to interact with…
Let’s talk about data structures in Python
Data structures is a way to store and organize data. Obviously, some data structures are good in one set of problems, but terrible in other ones. The right choice of data structure can make your…
Django + React + TS. How to create and consume GraphQL API
This article is dedicated to GraphQL. I will explain what GraphQL is and what advantages it has over REST. Then we will create a simple web application that exposes GraphQL API on server-side and consumes…
Как начать Django проект, который можно масштабировать
В статье создадим проект используя шаблонизатор cookiecutter-django, настроим статическую типизацию, добавим автоматическое форматирование кода с помощью black, создадим скрипт, который запускает тесты, проверяет правильность типов через линтер mypy и стиль кода через black. Напоследок добавим…
Celery + Channels = <3. Создаем реал-тайм приложение с бэкграунд тасками
В статье создадим веб-приложение, которое в бэкграунде делает запросы к API со случайными шутками каждые 15 секунд, затем отправляет шутку пользователю через WebSocket. Для реализации приложения будем использовать: django, celery и channels. Celery для бэкграунд…