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
Dockerizing Django With Postgres, NGINX, and Gunicorn (PART-1)

Running a Django application in a production environment requires a server that can handle traffic, ensure stability, and provide scalability. Gunicorn is a widely used and trusted server for running Django applications in such an environment. In thi...

Read: https://susiltiwari.com.np/dockerizing-django-with-postgres-nginx-and-gunicorn-part-1
Что произошло в мире Python за последний месяц

Привет! Раз в месяц мы в Moscow Python Podcast собираемся и обсуждаем новые релизы, PEP, заинтересовавшие нас инструменты и статьи. В апреле поговорили об исследовании экосистемы Django от JetBrains, LTS-релизе Django 4.2, релизе Pandas 2.0 и свежих PEP. Под катом — текстовая выжимка из обсуждения.


Читать: https://habr.com/ru/articles/730374/
Pre-GPT Text Generation: The Rise and Fall of My Personal Robotic Journalist

Before my career as a professional developer, I worked as a journalist. In the latter years of my journalism tenure, I identified numerous tasks that seemed suitable for delegation to junior staff members, or even better, complete automation. Possess...

Read: https://blog.stastka.org/pre-gpt-text-generation-the-rise-and-fall-of-my-personal-robotic-journalist
Show deleted entries in Django Simple History

The django-simple-history package is awesome as it shows you all the activity on a certain Django model object. It allows seeing how it was mutated over time and who changed it. However, there is one caveat: you cannot easily see what objects were de...

Read: https://deepintodjango.com/show-deleted-entries-in-django-simple-history
Python Дайджест: как ускорить Django проект до (почти) максимума

Завершение цикла статей про техническое оживление Python Дайджест. В первых трех частях рассказано как был совершен переход с Python 3.4 на Python 3.11 и Django 4, отформатирована вся кодовая база с pre-commit, настроена автоматизация задач на основе Github Actions. В заключительной части расскажу как получить "быстрый" сайт.



Читать: https://habr.com/ru/companies/first/articles/728792/
👍3
Installing Postgres Extensions with Django Migrations.

It’s possible to create Postgres extensions without having to log into your database and run it manually. The same task can even be more daunting if you have to do it the Docker way. Django makes it way easier with database migration operations. This...

Read: https://blog.stevenwithph.com/installing-postgres-extensions-with-django-migrations
👍2
How to add an image in a Django Project - step by step explanation and guide

Step 1: Define a model with ImageField
The first step is to define a model that has an ImageField. For example, let's say we have a model called "Product" which has a field for an image:
class Blog(models.Model):
title = models.CharField(max_leng...

Read: https://anish57.hashnode.dev/how-to-add-an-image-in-a-django-project-step-by-step-explanation-and-guide
👍1
Maximizing User Security with Django AllAuth: The Ultimate Authentication Solution

As a developer, one of the most critical aspects of creating a web application is ensuring that user authentication is secure and reliable. Fortunately, Django AllAuth is an open-source solution that provides an elegant and comprehensive solution to ...

Read: https://faithbolanle.hashnode.dev/maximizing-user-security-with-django-allauth-the-ultimate-authentication-solution
👍1
PyCharm Docker Django Debug

Эта статья посвящена настройке IDE для возможности запуска и отладки Django сервера. Статья нацелена на людей которые столкнулись с подобной проблемой и хотелось бы поделиться опытом, так как сам прошёл эти этапы.


Читать: https://habr.com/ru/articles/732164/
👍3
Getting Started with Django: A Step-by-Step Guide

Django is a high-level web framework that is written in Python. It is a powerful tool for building web applications quickly and easily. If you are new to web development with Django, this tutorial will guide you through the process of creating a new ...

Read: https://shitalmainali.com.np/getting-started-with-django-a-step-by-step-guide
Django Custom User Model

This blog post will discuss the need for a custom User model. We will build the User model from scratch, the steps involved in creating one in Django, and some best practices for managing a custom User model.
Why use a custom User model?
You might wa...

Read: https://rekib-ahmed023.hashnode.dev/django-custom-user-model
1
Sending POST data to a Django view via AJAX to a REST endpoint

If you want to send some POST data to an endpoint URL using AJAX, say for example, adding employee data to the database via a popup and not via the regular method, we need to extract the csrf_token value from the generated input tag.
Template ...

Read: https://anjanesh.dev/sending-post-data-to-a-django-view-via-ajax-to-a-rest-endpoint
Getting Started with Django

Prerequisites

Python: Django is built using Python, so having a good understanding of Python is essential before learning Django. This includes understanding basic programming concepts, data structures, functions, and object-oriented programming (OO...

Read: https://sayakofficial.hashnode.dev/getting-started-with-django
👍1
Django Crypto App Part 1: Functional Requirements and Setup

Introduction
Welcome to this 3-part technical tutorial series, where we'll be building a Django project that enables users to manage their cryptocurrency portfolios. To implement the functionalities and additional features, we'll be utilizing API cal...

Read: https://opensourced.hashnode.dev/django-crypto-app-part-1-functional-requirements-and-setup
Django Crypto App Part 2: Templates, Views and URLs

Introduction
Welcome to the second part of the 3-part technical tutorial series, where we'll be building a Django project that enables users to manage their cryptocurrency portfolios. To implement the functionalities and additional features, we'll be...

Read: https://opensourced.hashnode.dev/django-crypto-app-part-2-templates-views-and-urls
Django Crypto App Part 3: Wrap-Up and Testing

Introduction
Welcome to the final part of the 3-part technical tutorial series, where have been building a Django project that enables users to manage their cryptocurrency portfolios. To implement the functionalities and additional features, we'll be...

Read: https://opensourced.hashnode.dev/django-crypto-app-part-3-wrap-up-and-testing
Add Django Coverage & Quality pipelines in Gitlab

Introduction
If you have a Django project and you want to leverage Gitlab's pipelines to see your test cases running or see the code coverage %. The below article would help you do it step by step.
Code Coverage setup
For the code coverage you need t...

Read: https://chiragc.com/add-django-coverage-quality-pipelines-in-gitlab
Backends for Typescript React Apps

Highly Rated Backend Options
Let’s discuss backend options when using React and Typescript. Here are some of the most popular backend options for use with React and TypeScript with brief summaries and takeaways to help you compare them and find the r...

Read: https://jonchristie.hashnode.dev/backends-for-typescript-react-apps
Developing Django REST API

In this article, we will cover- APIs- Django REST APIs- HTTP methods and- Create our very own first REST API application.
What is an API?
API is short for Application Programming Interface and it allows you to interface with other applications and pu...

Read: https://waughkes.hashnode.dev/developing-django-rest-api-clh7p9frb000j09mf63o3fft3
Django Unleashed Framework
Photo
Django security releases issued: 4.2.1, 4.1.9, and 3.2.19

In accordance with our security release policy, the Django team
is issuing Django 4.2.1, Django 4.1.9, and Django 3.2.19.
These releases addresses the security issue detailed below. We encourage all
users of Django to upgrade as soon as possible.
CVE-2023-31047: Potential bypass of validation when uploading multiple files using one form field

Uploading multiple files using one form field has never been supported by forms.FileField or forms.ImageField as only the last
uploaded file was validated. Unfortunately, Uploading multiple files
topic suggested otherwise.

In order to avoid the vulnerability, ClearableFileInput
and FileInput` form widgets now raise ValueError when
the multiple HTML attribute is set on them. To prevent the exception and
keep the old behavior, set allow_multiple_selected to True.

For more details on using the new attribute and handling of multiple files
through a single field, see Uploading multiple files.

Thanks Moataz Al-Sharida and nawaik for reports.

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

* Django main branch
* Django 4.2
* Django 4.1
* Django 3.2
Resolution

Patches to resolve the issue have been applied to Django's main branch and the
4.2, 4.1, and 3.2 release branches. The patches may be obtained from the
following changesets:

* On the main branch
* On the 4.2 release branch
* On the 4.1 release branch
* On the 3.2 release branch

The following releases have been issued:

* Django 4.2.1 (download Django 4.2.1 | 4.2.1 checksums)
* Django 4.1.9 (download Django 4.1.9 | 4.1.9 checksums)
* Django 3.2.19 (download Django 3.2.19 | 3.2.19 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/2023/may/03/security-releases/