Light bulb Black Friday deal 30% off of all annual plans with the coupon code: BLACKFRIDAY2024 Sign Up Right Now!

Blog

Kostja Palović

Building a restful api with Django REST framework tutorial

This tutorial explains what RESTful API is and why it's used, followed by a step-by-step guide on how to build a REST API using Django. It covers creating a new Django project, defining models for a TODO app, using REST framework serializers and CRUD views, setting up a Django REST framework router and URLs, and testing the API.

Read more →
Kostja Palović

Celery Task Priority

This article covers how to prioritise tasks processing depending on user tier. The described approach uses Celery as an example, but can be replicated with any other background task processing tooling.

Read more →
Kostja Palović

Top Free Django Hosting 2024

Overview of free Django hosting offerings: AWS, Vultr, Google Cloud Platform. Deploy your first Django project for free on any of these Virtual Cloud Server Providers.

Read more →
Kostja Palović

Best frontend framework for Django

The best frontend framework to use with Django, including options such as jQuery, AlpineJS, React, and NextJS. Pros and cons of each framework and recommendations on how to deploy them separately when scaling the team or project.

Read more →
Crew

Web Server for Django

Web servers for Django application. Comparing popular Nginx server and newer, but promising Caddy server. Discussing pros and cons. In addition, examples of virtual host configuration for both Caddy and Nginx.

Read more →
Kostja Palović

Comparing Django vs Express.js

Django and Express.js are both popular frameworks for building web applications, with different strengths and weaknesses. Django is great for complex web apps with advanced features, while Express.js is best for real-time applications.

Read more →
Kostja Palović

Rate Limiting Celery Tasks

How to rate limit execution of Celery tasks in a reliable way. Throttle calls to 3rd party API via Celery Tasks.

Read more →
Kostja Palović

Celery Groups and Chords

Deep dive into differences between Celery Groups and Chords. In this tutorial, you will see when callbacks are called for groups and chords, how the hard-fail chord behaves to see celery chord error callback. You will also see how tasks retry inside groups and chords.

Read more →
Kostja Palović

Django CloudWatch Logs

Send Django application logs to Centralized CloudWatch. This enables you to have a better view of logs, search and filter logs. Every container gets its own log stream.

Read more →
Kostja Palović

Celery shared_task

shared_task is a decorator that makes a function – a celery task. Its primary purpose is for library developers because it doesn't require Celery App instance, but it is convenient for everyone. See params and examples of how to use it.

Read more →
Kostja Palović

Flower Celery Monitoring

Flower is the monitoring and administration tool for Celery. Learn how to setup in local development, how to secure it with BASIC_AUTH and how to deploy it in a production/staging environment in Appliku

Read more →
Kostja Palović

Django Bulk Update Model Instances

There are two ways to bulk update your Django model instances depending on the requirements. One is to save multiple objects using .bulk_update() and another is to use QuerySet.update() method.

Read more →
Kostja Palović

Bulk Create model instances in Django

If you have a lot of objects to save in database you may want to create them using .bulk_create method to make it faster. This will ignore pre and post save signals.

Read more →
Kostja Palović

Django Celery Multiple Queues, when and how to use them

How to work with multiple queues in Celery, why you need it and how to set it up. Tutorial includes file processing and DNS lookups for domains of email addresses. Also, docker-compose.yml is covered for local development.

Read more →
Kostja Palović

Using Celery task to generate data for a view

Learn how to use the Celery task to generate data for a Django view that is taking too long to respond.

Read more →
Kostja Palović

Django Channels WebSockets Quickstart Tutorial

Learn how to create a chat application with Django channels and deploy it in production without learning about DevOps!

Read more →
Kostja Palović

How to use JWT Authentication with Django

How to implement JWT Authentication with Django REST Framework, add logout views and invalidate all tokens for the current user.

Read more →
Kostja Palović

How to create AWS RDS Postgres instance

Database is the main auxiliary service needed for running your Django Project. How to create AWS RDS Postgres Database and connect to Django.

Read more →