Django Unleashed Framework
1.46K subscribers
2.17K photos
2.58K links
Лучшие материалы по разработке на фреймворке Django на русском и английском языке

Разместить рекламу: @tproger_sales_bot

Правила общения: https://tprg.ru/rules

Другие каналы: @tproger_channels

Другие наши проекты: https://tprg.ru/media
Download Telegram
DRF Serializer: Handling OrderedDict and Converting It to a Dictionary or JSON

In Django Rest Framework (DRF) tests, when you access serializer.data, you might encounter an OrderedDictinstead of a regular dictionary. This behavior is intentional and reflects the design of DRF's serialization process.

Understanding the Problem
The use of an OrderedDictensures that the order of fields in the serialized representation matches the order of fields defined in the serializer …

Read: https://djangocentral.com/drf-serializer-handling-ordereddict-and-converting-it-to-a-dictionary-or-json/
N+1 Query Problem

Introduction
Django, a high-level Python web framework, has gained widespread popularity for its robustness, flexibility, and ease of use. One of its key components is the Model Serializer, which plays a critical role in serializing and deserializing...

Read: https://rathnaviraj.hashnode.dev/n1-query-problem
Django: What, Why, and How?

Unveiling Django: What, Why, and How?
Greetings, fellas! 🌟 If you've stumbled upon this blog, you might be wondering about the magic behind web development, and let me tell you, we're about to unveil a tool that's like a magician's hat in the world ...

Read: https://imsrakesh.hashnode.dev/introduction-to-django
Django Rest Framework CheetSheet: Mastering API Development

Django Rest Framework (DRF) is a powerful toolkit that makes building robust and scalable web APIs with Django a breeze. Whether you're a seasoned Django developer or a newcomer, having a comprehensive cheat sheet at your disposal can be a game-changer. In this article, we'll delve into the most comprehensive Django Rest Framework cheat sheet, covering essential concepts, serializers, …

Read: https://djangocentral.com/django-rest-framework-cheat-sheet/
From Idea to Reality: How I’m building an online marketplace using python

I decided to start writing a series on how I use technology to approach and solve various problems. To be more precise, I will start releasing open-minded series about how I am utilizing Python and Django to create an online marketplace. I have been ...

Read: https://savviesammie.hashnode.dev/from-idea-to-reality-how-im-building-an-online-marketplace-using-python
Navigating the Database Evolution: A Beginner's Guide to Migrations in Django

Welcome to the world of Django – where your web application's journey often involves a dance with the database. In this guide, we're unraveling the mystery behind Django's migrations and uncovering why they're your best friends when it comes to manag...

Read: https://jairajremote.hashnode.dev/navigating-the-database-evolution-a-beginners-guide-to-migrations-in-django
Django's transactions: A high-level overview

Atomicity
Atomicity ensures that for a database (DB) operation with a set of queries, any evaluated query (a query that leads to the database being "touched") that raises a DatabaseError (or any of its subclasses like django.db.utils.IntegrityError) ...

Read: https://izu.hashnode.dev/djangos-transactions-a-high-level-overview
How to Use Subquery() in Django With Practical Examples

In the realm of web development, Django stands as a powerful and versatile framework for building robust applications. One of the key aspects of developing efficient and optimized web applications is handling database queries effectively. In this article, we will delve into the world of subqueries in Django, exploring their significance, practical examples of their usage, and a comparison between …

Read: https://djangocentral.com/how-to-use-subquery-in-django/
Getting Started with PostgreSQL: Essential psql Command Line Skills for Beginners

Last month I upgraded to Ubuntu 22.04 LTS. After upgrading, I faced some issues with pgadmin 4 interacting with Postgresql. For this reason, I have to do all the tasks using psql interactive shell. Here I will list out some basic PSQL commands that I...

Read: https://backendbyte.com/getting-started-with-postgresql-essential-psql-command-line-skills-for-beginners
Seamless Deployment of Django: Unlocking Efficiency with Gunicorn, Nginx, PostgreSQL, and Ubuntu - Part 1

Recently, I deployed a full-stack Django application on a Ubuntu server.
During the deployment process, I faced some issues in configuring everything on a production-ready server, mostly in configuring NGINX. I encountered the common error ‘502 Bad G...

Read: https://backendbyte.com/seamless-deployment-of-django-unlocking-efficiency-with-gunicorn-nginx-postgresql-and-ubuntu-part-1
Enhancing Web Applications with Efficient File Handling and Secure Uploads in Django

As technology continues to shape our online experiences, web applications have become integral tools for businesses and individuals alike. From social media to e-commerce platforms, these applications handle a vast array of data, including text, imag...

Read: https://davidsedoc.hashnode.dev/enhancing-web-applications-with-efficient-file-handling-and-secure-uploads-in-django
👍1👎1
How to Create User Sign up Form and Send Email Verification in Django

Sending emails to users is an important feature that should be implemented in Django your application, especially an application that involves users signing up with their email address. Sending emails can be useful in a Django application for various...

Read: https://delighto.hashnode.dev/send-email-verification-custom-user-model-django
How to Send Email with Verification Link in Django

Sending emails to users is an important feature that should be implemented in Django your application, especially an application that involves users signing up with their email address. Sending emails can be useful in a Django application for various...

Read: https://delighto.hashnode.dev/send-verification-email-django
How to Build an API using Django REST Framework with Ease #1

This article is part of a series tha is focused on helping beginners master the Django Rest framework and become efficient at writing REST APIs.

Introduction
An application programming interface (API) is a set of requirements, protocols, and resourc...

Read: https://titobzzz.hashnode.dev/how-to-build-an-api-using-django-rest-framework-with-ease-1
👍2
How to Create Python Virtual Environments on Ubuntu or any Linux distribution

What is a virtual environment in Python?
A virtual environment in Python is an isolated workspace specifically for the language. Packages installed within this environment do not interfere with globally installed Python packages, ensuring a clean sep...

Read: https://faizanalam.hashnode.dev/how-to-create-python-virtual-environments-on-ubuntu-or-any-linux-distribution
👍1
Django : Class Based Views vs Function Based Views

Django offers two types of views: function-based views (FBVs) and class-based views (CBVs). Initially, Django only had FBVs, but later CBVs were introduced to simplify repetitive coding.
CBVs are essentially Python classes that can be extended and re...

Read: https://sifu.hashnode.dev/django-class-based-views-vs-function-based-views
👍1
10 Killer Automated Python Scripts

Repeating tasks are always time-consuming and boring. Imagine cutting 100 photos one by one or doing tasks such as Fetching APIs, correcting spelling and grammar, etc., all of which take a lot of time. Why not automate them? In today’s article, I wil...

Read: https://sifu.hashnode.dev/10-killer-automated-python-scripts
Dockerizing a Django application with Postgres and Pipenv support

I will walk you through setting up Docker for your applications :). First let us talk about the technologies in the title.
All the stacks...
Ik'zo :fire
Docker
In these evil days, it is imperative for developers to shift their focus to business logic...

Read: https://blog.lordsarcastic.dev/dockerizing-a-django-application-with-postgres-and-pipenv-support
What is the difference between the Django and Django REST frameworks?

Django and Django REST framework are both frameworks for web development in Python, but they serve different purposes and have distinct features.

Django: Django is a high-level web framework that simplifies and streamlines the process of building we...

Read: https://bindu.hashnode.dev/what-is-the-difference-between-the-django-and-django-rest-frameworks
👍2😁1