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
Django for Beginners: Build websites with Python and Django

Embarking on the journey to learn Django as a beginner may initially seem daunting, given its robust framework and the intricacies of web development. However, the experience can be transformed into an exciting and manageable endeavor with the aid of...

Read: https://pyquinn.hashnode.dev/django-for-beginners-build-websites-with-python-and-django
👍1
Web Programming with Django - An Introduction

Introduction
Building a website using HTML and CSS is pretty trivial. Just build a structure implement some styling and voila. But a website or a webpage built using just HTML and CSS is a static web page i.e., Every time a user visits a page it will...

Read: https://akshayparihar.hashnode.dev/introtowebprogrammingwithdjango
Django security releases issued: 5.0.3, 4.2.11, and 3.2.25

In accordance with our security release policy, the Django team
is issuing Django 5.0.3, Django 4.2.11, and Django 3.2.25.
These releases addresses the security issue detailed below. We encourage all
users of Django to upgrade as soon as possible.
CVE-2024-27351: Potential regular expression denial-of-service in django.utils.text.Truncator.words()

django.utils.text.Truncator.words() method (with html=True) and truncatewords_html template filter were subject to a potential
regular expression denial-of-service attack using a suitably crafted string
(follow up to CVE-2019-14232 and CVE-2023-43665).

Thanks Seokchan Yoon for the report.

This issue has severity "moderate" according to the Django security policy.
Affected supported versions

* Django 5.0
* Django 4.2
* Django 3.2
Resolution

Patches to resolve the issue have been applied to the 5.0, 4.2, and 3.2
release branches. The patches may be obtained from the following changesets:

* On the 5.0 release branch
* On the 4.2 release branch
* On the 3.2 release branch

The following releases have been issued:

* Django 5.0.3 (download Django 5.0.3 | 5.0.3 checksums)
* Django 4.2.11 (download Django 4.2.11 | 4.2.11 checksums)
* Django 3.2.25 (download Django 3.2.25 | 3.2.25 checksums)

The PGP key ID used for this release is Mariusz Felisiak: 2EF56372BA48CD1B.
General notes regarding security reporting

As always, we ask that potential security issues be reported via
private email to [email protected], and not via Django's
Trac instance or the django-developers list. Please see our security
policies
for further
information.

Read: https://www.djangoproject.com/weblog/2024/mar/04/security-releases/
Мульти-тенант в Django

Привет, Хабр!

Мульти-тенант (multi-tenancy) — это подход, который позволяет одному экземпляру приложения обслуживать множество клиентов или арендаторов (тенатов). Каждый арендатор изолирован от других, имея возможность кастомизации под свои нужды, при этом основной кодовой базой и инфраструктурой делится между всеми.

Когда применять эту замечательную концепцию? Если говорить простыми словами, то мульти-тенант подход наиболее ценен для SaaS-продуктов, когда одно и то же приложение предоставляется разным клиентам, и каждый клиент работает со своим набором данных. Все это серьезно экономит ресурсы на обслуживание инфраструктуры, тк все изменения вносятся централизованно и мгновенно становятся доступны всем клиентам.

В Django мульти-тенант реализовывается довольно часто и для этого есть библиотека django-multitenant.


Читать: https://habr.com/ru/companies/otus/articles/797003/

@django_prog
My Wonderful Journey Through The Open Source World

When I started my CS journey, Open Source was something that immediately got my attention. It had everything that attracted me to the field: passionate developers working together as a community to build something wonderful. Ever since then, I've bee...

Read: https://neerajpy.hashnode.dev/my-wonderful-journey-through-the-open-source-world

@django_prog
Update a Django Primary Key to UUID

This is a tricky operation, especially if other models have a foreign key to the target model. A short example:
from django.db import models

class Author(models.Model):
name = models.CharField(max_length=255)

class Book(models.Model):
title...

Read: https://tomhuibregtse.com/update-a-django-primary-key-to-uuid

@django_prog
👍2
Redirect to the previous page after login in Django

Django implements numerous features to simplify your development experience. In this article, I want to demonstrate a simple behavior that you may find useful: redirecting the user to the exact page they were on before the login action. This could he...

Read: https://raffaellascode.hashnode.dev/redirect-to-the-previous-page-after-login-in-django

@django_prog
👍1
How to Set Up a Django and React SaaS Boilerplate: A Step-by-Step Guide

Starting a Software as a Service (SaaS) project can be daunting, especially with the initial setup of the infrastructure. Luckily, with the right boilerplate, much of the groundwork is laid out for you. This guide will walk you through setting up a S...

Read: https://rcmisk.com/how-to-set-up-a-django-and-react-saas-boilerplate-a-step-by-step-guide

@django_prog
Day 68 - Scaling with Terraform

Yesterday, we delved into the realm of AWS S3 Bucket creation with Terraform. Today, buckle up as we explore the art of scaling our infrastructure with Terraform's magical touch!
Understanding Scaling
Scaling is like a symphony conductor, orchestrati...

Read: https://davender.hashnode.dev/day-68-scaling-with-terraform

@django_prog
Django REST Framework : Part 1

DRF is an essential toolkit that empowers Django developers to create powerful and well-structured web APIs (Application Programming Interfaces). These APIs act as the bridge, enabling your applications to seamlessly ...

Read: https://aghattikar82.hashnode.dev/django-rest-framework-part-1

@django_prog
Django REST Framework : Part 2

Video ContainsIntroductionWhat is APIWhy do we use Django rest framework.

Read: https://aghattikar82.hashnode.dev/django-rest-framework-part-2

@django_prog
Can Django be combined with React ?

Introduction
Django is a high-level Python framework used for back-end services, while React is a top JavaScript framework used to design user interfaces (UIs). Combining these two frameworks will result in a website with a highly robust, scalable, a...

Read: https://rupard.hashnode.dev/can-django-be-combined-with-react

@django_prog
Django admin: How to add a custom page?

Django admin is a powerful tool to build admin panels rapidly. With just a few lines of code, you can have a fully functional admin panel in seconds.
The problem though is customization, one of the most common customizations you'll do often is add a ...

Read: https://kevincoder.co.za/django-admin-how-to-add-a-custom-page

@django_prog
Web Programming with Django - Going Live with your Web App

Overview
In my previous blog, I taught you how you can get started with Django, How to create a Project and an App and set up its configurations.
But it won't be worth it if you keep typing and can't even see the results, whether your app is working ...

Read: https://akshayparihar.hashnode.dev/web-programming-with-django-going-live-with-your-web-app

@django_prog
Lessons learned through building a finance tracking application with Django

Introduction
Building projects is important for a ton of reasons. One of them is to gain or fortify knowledge. Here are some of the key features of the finance tracking application (called FinTracker) that I built:

Authentication and Authorization

...

Read: https://mickeythebrave.hashnode.dev/lessons-learned-through-building-a-finance-tracking-application-with-django

@django_prog
👍2
An another Django vs Flask comparison. which one is better.!! (2019)

Having trouble deciding on choosing a python framework for building up REST APIs for your web application? Here comes a quick statistical performance comparison between Django and Flask in terms of requests processing that also involves DB transactio...

Read: https://titusjoyson.com/an-another-django-vs-flask-comparison-which-one-is-better-2019

@django_prog
Dynamic creation of REST APIs from third-party databases with Django-Schema-Sprout

Working with third-party or legacy databases can be a real headache.
We've all been there - you're stuck dealing with a database you didn't design, and every change feels like a nightmare.
Django's inspectdb helps create models from an existing schem...

Read: https://pawel-puchalski.com/dynamic-creation-of-rest-apis-from-third-party-databases-with-django-schema-sprout

@django_prog
👍1
Streamlined Django Deployment with Docker:

➡️Introduction:
Docker has revolutionized the way developers approach deployment by providing a lightweight and portable solution for containerizing applications. When paired with Django, a robust Python web framework, Docker offers unparalleled conv...

Read: https://shubhammukherji.hashnode.dev/streamlined-django-deployment-with-docker

@django_prog
Day 29: Web Development Frameworks (FastAPI)

In this blog, we delve into Python's web development frameworks as part of my ongoing Python learning journey. This marks the twenty-ninth installment of this series. In today's programming landscape, frameworks play a pivotal role in driving develop...

Read: https://himanshuchauhan.hashnode.dev/day-29-web-development-frameworks-fastapi

@django_prog
Update a Django Primary Key to UUID

EDIT 3-10-24: As u/heppy pointed out on Reddit, there was an error with my initial implementation. I deleted the author's id before populating the book's new author foreign key, meaning that book's reference to author id no longer held any meaning. I...

Read: https://thuibr.hashnode.dev/update-a-django-primary-key-to-uuid

@django_prog