• Posts
  • About
  • Tips & Tricks

Documentation for your Event-Driven API
docs

Documentation for your Event-Driven API

In this article, we'll cover the tool named AsyncAPI for documenting your event-driven APIs in a detailed and creative way. Companies widely use event-driven services in terms of performance. It's a publisher-consumer mechanism which allows services to communicate through message brokers such as RabbitMQ or Redis. Real Case Scenario We
Jun 19, 2022 — 4 min read
Setup Grafana with Prometheus  for Python projects using Docker

Setup Grafana with Prometheus for Python projects using Docker

In this article, we will cover how to set up service monitoring for Python projects with Prometheus and Grafana using Docker containers. Service monitoring allows us to analyze specific events in our projects such as database calls, API interaction, tracking resource performance, etc. You can easily detect unusual behaviour or
Jun 11, 2022 — 6 min read
How to optimize the performance of Django admin with millions of data in MongoDB
django

How to optimize the performance of Django admin with millions of data in MongoDB

In this article, I want to share my previous experience where I managed to increase the speed of Django admin to load more than 20 million records from MongoDB. If you want to learn how to integrate MongoDB with Django admin then you can check my other post below: Set
Jun 4, 2022 — 3 min read
Pre-commit hooks and linting configurations for Python projects
clean code

Pre-commit hooks and linting configurations for Python projects

In this article, we'll configure pre-commit hooks to automatically lint our code before committing changes to Github. Since we're using Python, we can add autopep8 to make our code align with PEP8 guidelines or if the project includes YAML files we can use related packages to check validation of these
May 28, 2022 — 3 min read
Swagger with Django REST Framework
django

Swagger with Django REST Framework

In this article, we will use Swagger to generate documentation for our API. We will use a third-party package that will simply auto-generate Swagger documentation for implemented endpoints with DRF. First, install the example repository from Github which is a very simple blog app with a few models that will
May 23, 2022 — 3 min read
Install Opencart and MariaDB using Docker Containers
ecommerce

Install Opencart and MariaDB using Docker Containers

In this article, we'll see how to run Opencart in Docker containers alongside MariaDB and Phpmyadmin. Before going on, make sure you have a basic understanding of Docker and compose files since these details will be not covered in this post. We'll have 3 containers in total: 1. Opencart 2.
May 4, 2022 — 3 min read
Adding Recaptcha in Django REST Framework (Throttling)
django

Adding Recaptcha in Django REST Framework (Throttling)

In this article, we'll cover how to add Recaptcha in Django REST Framework using throttling. Adding Recaptcha is always good practice to avoid spambots such as creating dummy users that will fill the database with useless data. In DRF, some public API endpoints (register/login/reset password and etc.) need
May 1, 2022 — 4 min read
Sending dynamic emails with Python/Django and SendGrid
django

Sending dynamic emails with Python/Django and SendGrid

In this article, we'll cover how to send emails with Python using Sendgrid's dynamic templates. Normally, we used to set up email backend for Django project also keeping our templates inside the specific directory using jinja template syntax. However, with dynamic templates, you only need to define rendered data that
Jan 30, 2022 — 3 min read
Create Shopify App with Python/Django
django

Create Shopify App with Python/Django

In this post, we'll cover how to create a public Shopify app using the Django web framework. The main purpose of this article is to provide you with the general concept about creating a Shopify app. Before we start, tt would be better if you have a basic understanding of
Jan 27, 2022 — 10 min read
Using @property decorator in Django
tips

Using @property decorator in Django

In this quick post, I will show you how to use @property decorator in Django models to make code clean and optimized. Instead of adding extra fields to our model, we can define a custom property that will use already existing fields to return the required data. Example Scenario We
Jan 8, 2022 — 1 min read
Set up PostgreSQL and MongoDB in Django using Docker
django

Set up PostgreSQL and MongoDB in Django using Docker

In this post, you'll learn how to integrate multiple databases with the Django framework and navigate incoming data using a DB router that automatically writes them to the required database. Real-world example scenario Usually, the majority of projects are using relational databases such as Postgres or MySQL but sometimes we
Dec 26, 2021 — 10 min read
Use GIT REBASE instead of GIT MERGE
git

Use GIT REBASE instead of GIT MERGE

In this quick post, I want to show how to use git rebase to keep your commit path clean and maintainable.
Nov 22, 2021 — 1 min read
Send multiple forms with Ajax (FormData) in Django
django

Send multiple forms with Ajax (FormData) in Django

In this article, I am going to show you how to send multiple forms in Django using Ajax and FormData. Normally, it’s also possible to send forms only with Ajax by defining data inside the function.
Nov 14, 2021 — 7 min read
Upload Multiple Images to a Django Model without plugins
django

Upload Multiple Images to a Django Model without plugins

I am going to show you how to add multiple images to a Django model without any plugins.
Nov 13, 2021 — 7 min read
Migration of Categories (Collections) using Shopify API
ecommerce

Migration of Categories (Collections) using Shopify API

In this post, we'll use Shopify Admin API to create collections in our store. Before we go on, you are going to need a development store and create a private app where it provides API credentials to interact with store data.
Oct 29, 2021 — 4 min read
Django web security checklist before deployment
security

Django web security checklist before deployment

You already know web security is important to keep hackers and cyber thieves from accessing sensitive information. So, in this post, we are going to check Django security vulnerabilities and how to fix them.
Oct 27, 2021 — 4 min read
Mock Django models using Faker and Factory Boy
TDD

Mock Django models using Faker and Factory Boy

In this post, you'll learn how real-world apps are mocking Django models by using Factory Boy.
Oct 23, 2021 — 5 min read
Install Prestashop & MySQL by using Docker containers
ecommerce

Install Prestashop & MySQL by using Docker containers

This quick post will show you how you can install and set up Prestashop by using only Docker containers.
Oct 18, 2021 — 3 min read
Dockerizing Django with Postgres, Redis and Celery
docker

Dockerizing Django with Postgres, Redis and Celery

In this episode, we are going to build a dockerized Django application with Redis, celery, and Postgres to handle asynchronous tasks.
Oct 16, 2021 — 8 min read
Typing speed test automation with Python
selenium

Typing speed test automation with Python

In this post I will show you how to automate the typing test websites which is really fun and by building this project you will improve your automation skills with Selenium.
Oct 16, 2021 — 5 min read
© 2022
  • Data & License
  • Github
Powered by Ghost