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
RESTful APIs with Django and the Django Rest Framework

Part 2 - Building RESTful Endpoints from Django Models
In part one of this tutorial, we laid the groundwork for building RESTful APIs in Django by manually creating endpoints without utilising models. In this second part of the tutorial, we'll dive i...

Read: https://pedbad.hashnode.dev/restful-apis-with-django-and-the-django-rest-framework

@django_prog
👍21
Using Cerbos with Keycloak for Identity/AuthN

Published initially by Omu Inetimi on Cerbos website

In this tutorial, we'll use Keycloak for authentication and then implement Cerbos for fine-grained access control, all within a Django web application, though the same principle will work for any ...

Read: https://cerbosdev.hashnode.dev/using-cerbos-with-keycloak-for-identityauthn

@django_prog
👍1
Containerize your Django Web Application with Docker

Introduction
Containerization is becoming commonplace in modern software development. The practice involves the development of software applications in isolated environments that mimic a desired operating system. Containerization has enabled develope...

Read: https://nickoch.hashnode.dev/containerize-your-django-web-application-with-docker

@django_prog
👍3
Secure Your Django App with Parameterized Queries

Building software goes beyond creating a functional application or solution. You also need to protect user data and privacy, which shows you care not only for the problem your application solves but also for your users.
In this short guide, we will d...

Read: https://sophyia.me/secure-your-django-app-with-parameterized-queries

@django_prog
Oh *THAT* extension, it's called "Emmet"

I'm looking for why something broke. The classic late-evening activity for your average software dev. Sometimes I try to give these things a solid go of my own before I give up, turn my brain off and ask google.
But it's Sunday night. I have stuff on...

Read: https://blog.mountainbean.online/oh-that-extension-its-called-emmet

@django_prog
How to add tailwind to your Django project and Django Admin

Install Tailwind CSS in your Django project
Tailwind CSS is a CSS framework that allows you to build custom styles for your web pages. It provides a set of pre-built classes that you can use to style your HTML elements.
Before we run the next command...

Read: https://chaicode.com/blogs/how-to-add-tailwind-to-your-django-project-and-django-admin

@django_prog
Django in one file? Or should i call it a mini Django?

It's weekend and after a very busy week i am back in my home desk and navigating through my checklist. Though i had not put any priority on my checklist, my eye went to A Simple Django version for beginners. Frankly i forgot what was my real idea ove...

Read: https://djangotherightway.com/django-in-one-file-or-should-i-call-it-a-mini-django

@django_prog
Django Relationships

Django relationships are fundamental to structuring data in web applications. With Many-to-Many, Foreign Key, and One-to-One fields, Django offers versatile tools for modeling complex relationships between different types of data. Understanding and m...

Read: https://apulkit674.hashnode.dev/django-relationships

@django_prog
Multi-Language Django Project in 12 Simple Steps(2024).

A Comprehensive Guide to Internationalization in Django
In today's interconnected world, reaching a global audience is crucial for the success of any web application. Internationalization (i18n) in Django allows developers to create applications that...

Read: https://chritianhonore.hashnode.dev/multi-language-django-project-in-12-simple-steps2024

@django_prog
`LIKE` uses a range index

A Django's Auth table's indexes:
mysql> show index from auth_user;

+-----------+------------+------------+--------------+-------------+-----------+-------------+----------+--------+------+------------+---------+---------------+

| Table | Non_un...

Read: https://blog.danwald.me/like-uses-a-range-index

@django_prog
Понимание индексации базы данных и как ее реализовать в Django

В контексте баз данных скорость и эффективность имеют важное значение. Индексирование — одна из основных стратегий, используемых для повышения производительности запросов к базе данных. В этом сообщении блога мы рассмотрим индексирование баз данных, в том числе, что это такое, почему это важно.

Читать: https://prakash0091.hashnode.dev/understanding-database-indexing-and-how-to-implement-it-in-django

@django_prog
RESTful APIs with Django and the Django Rest Framework

Part 3 - Using Model Serializers with Django Rest Framework
In Django, creating and managing web APIs can be accomplished without any additional tools, but this often involves a lot of repetitive and error-prone manual work. In the last part of this ...

Read: https://pedbad.hashnode.dev/using-model-serializers-with-django-rest-framework

@django_prog
Choosing Your Python Path: Flask vs Django for Web Development

When it comes to web development in Python, Flask and Django are two of the most popular frameworks available. Both offer powerful tools and features for building web applications, but they have distinct differences that make them suitable for differ...

Read: https://anishchatterjee.hashnode.dev/choosing-your-python-path-flask-vs-django-for-web-development

@django_prog
How to Get Started with Django: A Comprehensive Guide for Beginners

Ever wondered how websites are built? Well, wonder no more because I’m about to take you on an exciting journey into developing a website using Django — a powerful framework of Python for creating awesome websites!
In this easy-to-follow guide, I’ll ...

Read: https://rayyann.hashnode.dev/how-to-get-started-with-django-a-comprehensive-guide-for-beginners

@django_prog
A guide on Django models

Django models
Django models are the heart of the Django framework. They are used to define the structure of the database and the relationships between different models. In this section, we will explore the basics of Django models and how to create th...

Read: https://chaicode.com/blogs/a-guide-on-django-models

@django_prog
Django 5.1 alpha 1 released

Django 5.1 alpha 1 is now available. It represents the first stage in the 5.1
release cycle and is an opportunity for you to try out the changes coming in
Django 5.1.

Django 5.1 brings a kaleidoscope of improvements which you can read about in the in-development 5.1 release notes.

This alpha milestone marks the feature freeze. The current release schedule
calls for a beta release in about a month and a release candidate about a month
from then. We'll only be able to keep this schedule if we get early and often
testing from the community. Updates on the release schedule are available on
the Django forum
.

As with all alpha and beta packages, this is not for production use. But
if you'd like to take some of the new features for a spin, or to help find and
fix bugs (which should be reported to the issue tracker), you can grab a
copy of the alpha package from our downloads page or on PyPI.

The PGP key ID used for this release is Natalia Bidart: 2EE82A8D9470983E.

Read: https://www.djangoproject.com/weblog/2024/may/22/django-51-alpha-1-released/

@django_prog
Пишем свой Chat GPT

По работе активно использую ChatGPT, часто бывает ситуации, когда модель позволяет найти решение, о котором даже не подозревал. В этом году он стал реальными помощником в поиске информации наравне с Google. Если в Google нужно вводить точный запрос и искать в выдаче подходящее решение, то Chat позволяет найти решение по описанию проблемы или проверить гипотезы.

У меня давно было желание  поработать с непосредственно с самим API от Open AI и с другими LLM моделями. Решил написать свой чат с возможностью адаптировать под внутренние нужды команды в дальнейшем. Проект выложен в открытый доступ, скачать можно по ссылке. Сам проект находится в активной разработке, так что вы можете писать ваши замечания / пожелания в комментариях или отправить ваш pull request с исправлениями. Будем оперативно исправлять ошибки.

На бэкенде был выбран Python, Django Rest Framework. На фронтенде React, Redux, Saga, Sass. Начнем с бэкенда, им занимался Егор. Далее про серверную часть проекта он пишет от себя.


Читать: https://habr.com/ru/articles/749234/

@django_prog
Тестируем внешнее django-приложение при помощи pytest

Я не буду спрашивать, как вы попали в такую ситуацию. Я в неё как-то попала, значит, и вы тоже могли. Я просто расскажу, как из неё выбраться.

Итак, у вас есть джанго-приложение, апишка к нему, и вы хотите написать автотесты на пайтест, находясь вне этого джанго-приложения. Погнали.


Читать: https://habr.com/ru/articles/816669/

@django_prog
1👍1
Automating Deployments: Streamlining Your Python Django Project with CI/CD

Introduction
This is part one of a two-part series where we are going to use CI/CD to streamline the development and deployment process of a blog API built using Django and the Django Rest Framework. So, what is CI/CD? CI/CD stands for Continuous Int...

Read: https://blog.brianmarwa.com/automating-deployments-streamlining-your-python-django-project-with-cicd

@django_prog
👍1
Connecting React Frontend with Django Backend: A Step-by-Step Guide

This guide will walk you through the process of setting up a React frontend that communicates with a Django backend in the most simplest and the minimum possible way. Let's get right in..
Frontend Setup

Initialize the Frontend Project: Start by crea...

Read: https://rhythmblogs.hashnode.dev/react-django-connection-guide

@django_prog
Building Web Applications with Django: A Comprehensive Guide

Django is a high-level Python web framework that enables rapid development of secure and maintainable websites. Developed with a "batteries-included" philosophy, Django comes with many built-in features that streamline the process of building web app...

Read: https://blog.bytescrum.com/building-web-applications-with-django-a-comprehensive-guide

@django_prog