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
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/
Django Vs. Laravel: A War of Two Powerful Web Development Frameworks 🔥

Imagine your city is under attack and Thanos is destroying building one after one. You are on the verge of a collapsing building and you have only choice to choose between Captain America and Iron Man to rescue you.
On the one hand, you have Captain ...

Read: https://makerspace.hashnode.dev/django-vs-laravel-a-war-of-two-powerful-web-development-frameworks
Growing Django Skills: GitHub MiniProjects

Bismillah,
Over the past few days, I've been experimenting with Django, learning new concepts through the Django official documentation and Real Python contributors.
In this article, I'll just share an overview of a few mini-projects that you can fin...

Read: https://chiefomar.hashnode.dev/growing-django-skills-github-miniprojects
Дайджест Python #8: обновления Django и обучение GPT-4

Собрали дайджест из материалов по Python с 15 по 30 апреля. Узнайте, как подключить AutoGPT проекту, как изменился Django и как обучить GPT-4.

Читать: «Дайджест Python #8: обновления Django и обучение GPT-4»
👍1
Portfolio App: Islamic Calendar Web App - Bugs Here and There

Bismillah,
Asalaam Aleykum brothers and sisters. I hope you have been well, I know I have Alhamdullilah.
In the previous article, I discussed how I'll be working on a Portfolio App for showcasing my skills as a Developer. Well, I started that this mo...

Read: https://chiefomar.hashnode.dev/portfolio-app-islamic-calendar-web-app-bugs-here-and-there
👍1
Django unit testing - Part (2/2): Implent unit testing and coverage in django

Intro
This article is using the following versions:

Django==4.2.1

djangorestframework==3.14.0


Disclaimer: This is a very on-top look over these topics, you can find it deeper in the docs.
First article link:
https://zomor.hashnode.dev/django-unit...

Read: https://zomor.hashnode.dev/django-unit-testing-part-22-implent-unit-testing-and-coverage-in-django
Add Django Coverage and 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 percentage. This article will guide you step by step.
Code Coverage setup
For the code coverage you need to ...

Read: https://blog.chiragc.com/add-django-coverage-and-quality-pipelines-in-gitlab
📰 Monthly digests: April 2023

In the company where I work, I do a monthly digest with information that I find valuable and interesting to share with my colleagues and discuss them.This digest will be mostly related to Django framework.
Links

🎸 Django 4.2 released - Django 4.2 i...

Read: https://hashnode.dmytrolitvinov.com/monthly-digests-april-2023
👍2