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…
Browsing Category Programming
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…
Django + GraphQL. Solving N+1 Problem using DataLoaders
In this article we’re going to focus on specific problem which you will probably face if you start developing GraphQL APIs. I will try to explain the problem first and then show you how it…
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 для бэкграунд…
Django + Vue. Реализуем вход через Google
Никто не любит при регистрации на сайте вводить каждый раз одно и то же: имя пользователя, электронную почту и т.д. Либо постоянно создавать и запоминать новые пароли. По этой причине, вход через сторонние приложения вроде…