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
Keeping accurate amounts in Django with CurrencyField

At Wundermart we started saving monetary amounts in Django, we naively started with DecimalField(decimal_places=2) for our financial data. After some time we realized that you will lose data this way when applying calculations, for example:
€100 * 0....

Read: https://deepintodjango.com/keeping-accurate-amounts-in-django-with-currencyfield
👍1👎1
Creating a Simple API using Django Rest Framework

Building a robust API is essential for modern web applications, enabling seamless data exchange between the backend and frontend. Django Rest Framework (DRF) is a powerful toolkit that simplifies the process of creating APIs in Django, a popular Pyth...

Read: https://aiblogger.hashnode.dev/creating-a-simple-api-using-django-rest-framework
Let's Learn Django #6: Using Database & Admin Panel

In the last blog, we discussed how can we use Django templating to the fullest. In this blog, we will discuss how can we use databases and handle our data in Django.
Introduction to Django databases
I am hoping everyone knows what a database is, but ...

Read: https://dilutewater.hashnode.dev/lets-learn-django-6-using-database-admin-panel
How to Use Celery with Django for Asynchronous and Periodic Tasks : A Comprehensive Guide

In modern web development, the ability to handle time-consuming tasks asynchronously is crucial for enhancing the performance and responsiveness of web applications.

Django, a powerful web framework, provides seamless integration with Celery, a popular distributed task queue, to manage asynchronous and scheduled tasks efficiently.
In this guide, we will walk through the process of using Celery in Django to perform …

Read: https://djangocentral.com/how-to-use-celery-with-django/
Django Caching 101: Understanding the Basics and Beyond

In today's world of web development, website speed and performance are
paramount. Users expect websites to load quickly and provide a seamless user
experience. Slow-loading pages can lead to frustrated users, decreased
engagement, and ultimately, los...

Read: https://pragativerma18.hashnode.dev/django-caching-101-understanding-the-basics-and-beyond
👍1
Common Mistake People do while doing Django!

Through this Blog, I want to aware you that while doing Django, then the most common mistake people do is that: They forget to create a Virtual environment in the directory, and without creating they used to start the project by writing 'python manag...

Read: https://anmolsblogs.hashnode.dev/common-mistake-people-do-while-doing-django
👍1
Consultas ORM en Django

Explorando el poder del ORM en un modelo de Libros y Autores
El ORM (Object-Relational Mapping) en Django es una potente herramienta que nos permite interactuar con la base de datos utilizando objetos de Python en lugar de consultas SQL directas. En ...

Read: https://jorgecespedes.hashnode.dev/consultas-orm-en-django
👍1
Higher-Order Function

what is a Higher-Order Function?

In Python a higher-order function is a function that takes takes one or more function as arguments, return a function as its result or both.
In other words, it treats functions as first-class citizens, allowing them ...

Read: https://imkanchan.hashnode.dev/higher-order-function
Exploring Django ViewSets: Simplifying API Development and Enhancing Code Reusability

If you have ever written API code in Django, you know that it can be a lot of work. You have to create separate views for each HTTP method and manually create URL patterns that reference each of these views. This can be a lot of code to write and mai...

Read: https://seunfashina.hashnode.dev/exploring-django-viewsets-simplifying-api-development-and-enhancing-code-reusability
👍1
Building a Secure Django REST API for Books

Django REST Framework (DRF) provides an excellent platform for building robust and flexible Web APIs in Django applications. In this blog, we will walk through the process of creating a comprehensive API for managing books using Django and DRF. We wi...

Read: https://aiblogger.hashnode.dev/building-a-secure-django-rest-api-for-books
👍3
Unveiling Django's Powerful Annotate Function

Django's ORM is a powerful tool that can make interacting with your database as simple as working with Python code. One of the most powerful parts of Django's ORM is the annotate function, which can add extra "fields" to your models, based on complex...

Read: https://saurav.codes/unveiling-djangos-powerful-annotate-function
👍1
Model Formset in Django

Django Model Formsets
Introduction
Formset is a way of working with multiple forms at the same time. Using Formset you can use multiple forms on a single page. In this article, we will be creating formset using a model and see all the options that ar...

Read: https://rishabhdev.hashnode.dev/model-formset-in-django
👍1
How to Send Emails with Django

In today's interconnected world, email remains a vital means of communication for businesses, organizations, and individuals. As a Django developer, understanding how to integrate email functionality into your web applications is essential for enhanc...

Read: https://huericnan.hashnode.dev/how-to-send-emails-with-django
👍1
Deploying a Python Django Project on AWS: Step-by-Step Guide with Commands

Introduction:
Deploying a Python Django project on Amazon Web Services (AWS) can be an exciting experience that brings your web application to a global audience. In this blog, we’ll guide you through the process of deploying a Django project on AWS u...

Read: https://saurabhchodvadiya.hashnode.dev/deploying-a-python-django-project-on-aws-step-by-step-guide-with-commands
Creating Interactive API Documentation with Swagger UI in Django

Introduction:
In the world of web development, having comprehensive and interactive API documentation is crucial for smooth integration and collaboration. Django, a popular web framework for Python, provides an easy way to achieve this through Swagge...

Read: https://saurabhchodvadiya.hashnode.dev/creating-interactive-api-documentation-with-swagger-ui-in-django
👍1🔥1
Главное из мира Python за февраль 2023

Раз в месяц мы в Moscow Python Podcast собираемся и обсуждаем новые релизы, PEP, заинтересовавшие нас инструменты и статьи. Под катом — текстовая выжимка из обсуждения.


Читать: https://habr.com/ru/articles/722008/
Python Дайджест: как актуализировать всю кодовую базу с помощью pre-commit

Продолжаю рассказывать, как open source проект Python Дайджест спустя 5 лет без обновлений удалось актуализировать по всему стэку технологий. В первой части рассказал, как удалось outdated проект с Python 3.4 обновить до Python 3.11 и Django 4.1.
В этой части расскажу, как удалось максимально дешево привести кодовую базу в актуальное состояние.


Читать: https://habr.com/ru/companies/first/articles/721732/
Django REST. Реализация функционала добавления в «избранное» с возможностью расширения типов добавляемого контента

Допустим у нас есть зарегистрированные пользователи и какая-то модель, например "Компании", которую пользователь может добавлять в избранное. Обычно такая задача решается путем создания третьей таблицы Favorite, являющейся связующим звеном, для реализации ManyToManyField связи между пользователем и компанией


Читать: https://habr.com/ru/articles/723300/
Django DRF Sign-in with Apple

Привет, уважаемый читатель!

Пришла пора внедрить систему аутентификации от Apple в проект на Django DRF, ведь система входа от Google была реализована давно и по идее проблем не должно было возникнуть, но как сказал один известный гном: "Я ещё никогда так не ошибался..." А теперь по порядку.


Читать: https://habr.com/ru/articles/723322/
👍1