© 2023 Hashnode
#django-rest-framework
Creating a Django application that performs well can be difficult, especially when handling big amounts of data and high traffic. In this post, we'll look at several key methods and best practices for…
The N+1 problem is a common issue that can occur when using the Django REST framework serializer. It happens when the code makes multiple database queries to retrieve related data, instead of using a …
As the completion of a software project approaches a necessary final step to be taken is testing it to make sure everything is working the way it's supposed to because what's the point of building a p…
This post explains step-by-step how to create a custom User model in Django. Objectives By the end of this article, you should be able to: Describe the difference between AbstractUser and AbstractBas…
In this post, I will cover how you can build a blog API in DRF (Django Rest Framework). This is a step-by-step guide that will help you get started in building your (probably) first API project. I wil…
The process of designing, building, testing, and continuous maintenance that goes into creating and sustaining a web application is labor-intensive. Many Python and Django projects run into the same p…
Background API keys, also known as application programming interface keys, are codes or tokens used to authenticate and authorize access to an API (Application Programming Interface). The API provider…
This article continues from the first series which can be found here in part 1. After creating the custom user and the product app, I created the database for the product using this method. from django.db import models from django.conf impo…
The speed of loading a web application page can literally make or break an online business, whether it is an e-commerce or a business website. Page speed has a huge impact on user behavior, it affects…
For this project, I used Django to build the models, Django rest framework for the API, and MySQL for the database. What are the steps needed to proceed create a virtualenv using pipenv and activate it Desktop/Development/: pip install pipe…