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 LTS 4.2: обзор изменений и необходимости обновления

В апреле 2023 года вышла новая LTS-версия Django Web Framework, одного из самых популярных фреймворков для веб-разработки на Python.

«Вышла новая версия! Почему вы до сих пор не перешли на неё?» — такой вопрос часто возникает у студентов, изучающих этот фреймворк на курсах программирования. Аналогичный вопрос можно услышать и от начинающего специалиста, который недавно приступил к выполнению своих обязанностей в качестве бэкенд-разработчика.

А стоит ли сейчас вообще начинать новый проект на Django или изучать этот фреймворк? В этой статье я, Евгений Бартенев, техлид и автор курса «Python-разработчик», помогу разобраться с этими и другими вопросами. Мы поговорим о разных типах релизов Django, посмотрим на главные изменения в новом и затронем основные аспекты, которые следует учитывать при обновлении версии Django в проекте.


Читать: https://habr.com/ru/companies/yandex_praktikum/articles/727626/
django-admin startapp vs python manage.py startapp

django-admin startapp and python manage.py startapp are both commands used to create a new Django app within a project. However, they are executed differently.
django-admin is a command-line tool that allows you to execute various Django-related task...

Read: https://vicentereyes.org/django-admin-startapp-vs-python-managepy-startapp
Pytest Django Tutorial: Testing Your Django Apps With Selenium Pytest

Django reduces the development complexities of large-scale websites. But when developing a website with Django, UI automation testing is as essential as unit testing. Even if your team operates a CI/CD pipeline, you want to ensure you catch bugs earl...

Read: https://idowuomisola.hashnode.dev/pytest-django-tutorial-testing-your-django-apps-with-selenium-pytest
1
Creating Simple Django Application

1.Install Django

To install Django, you can follow the below steps:

Make sure you have Python installed on your system. You can download the latest version of Python from the official website: https://www.python.org/downloads/

Open the command pro...

Read: https://narendra95.hashnode.dev/creating-simple-django-application
👍1
Cloudflare R2 with Django Storages

Cloudflare R2 is a new object storage solution that offers several benefits for developers. One of the main benefits is that it eliminates egress fees, which are fees charged by cloud providers for accessing data stored on their networks. This can re...

Read: https://asankal.hashnode.dev/cloudflare-r2-with-django-storages
👏1
Building Course Assist Part 8: Deploying the Course Assist backend to AWS.

With the active development of Course Assist now complete I've started the deployment process with the first step being deploying the backend to Amazon Web Services (AWS)😁. The backend was built in Python using Django and the Django rest framework f...

Read: https://andysonm.hashnode.dev/building-course-assist-part-8-deploying-the-course-assist-backend-to-aws
🔥1
Как не допустить свалки в Django-проекте: MTV, services.py, новые приложения

В этом материале мы обсудим, как писать чистый код, и какие концепции и типовые ошибки превращают утончённые проекты в заросли и свалки.

Читать: «Как не допустить свалки в Django-проекте: MTV, services.py, новые приложения»
👍1
How to download Pandas Dataframe as Excel or CSV in Django?

Introduction
Pandas is an essential tool used by Python developers used for data analysis purposes, but what is the point of the analysis if we are not able to provide that insight to the end user. When Django and Pandas are used in conjunction we ca...

Read: https://idiomaticprogrammers.hashnode.dev/how-to-download-pandas-dataframe-as-excel-or-csv-in-django
🔥1
Como criar Middlewares customizados no Django

Fala Dev! Na paz?!
Nesse meu primeiro post aqui no Hashnode você vai aprender a criar Middlewares no Django, que são trechos de código para tratamento prévio ou posterior de requisições que chegam e saem do seu sistema Django.
Ficou confuso? Então bo...

Read: https://pythonacademy.hashnode.dev/como-criar-middlewares-customizados-no-django
👎1
How to check for SQL queries generated in your Django project.

Django is a high-level framework that enables rapid development of secure and maintainable websites. It takes care of much of the hassle of web development, so you can focus on writing your app without needing to reinvent the wheel. It allows you to ...

Read: https://neocodez.hashnode.dev/how-to-check-for-sql-queries-generated-in-your-django-project
Create a Modern Application with Django and Vue

Download source code here. ⬅️

Previously, in the beginner's roadmap to web development tutorial series, we talked about how to create a web application using Django, a full-stack Python-based web framework that follows the MTV design pattern. We cal...

Read: https://huericnan.hashnode.dev/create-a-modern-application-with-django-and-vue
Django Unleashed Framework
Photo
Announcement of 5.x Technical Board Election Registration

The release of Django 4.2 represents the final feature release of a major release series of Django. Per DEP-0010 this release triggers the election for the Technical board for the Django 5.x release cycle.

All individual DSF members are automatically registered electors.

If you are not a DSF member and would like to apply to vote you need to register here.

The process of electing a new Technical Board will be:

* Registration of Electors is now open, and will close Friday April 21, 2023 AoE.
* Registration of Candidates will then be open for one week ending Friday April 28th, 2023 AoE
* On May 5th, 2023 all registered and approved electors will receive an email to the email address they are registered with along with a unique code to be used when voting.
* Voting will be open for one week, until May 12th, 2023 AoE.
* The results of the election will be announced when voting is finished.

All times are Anywhere on Earth (AoE), or UTC-12:00.

If you have any questions about the election please contact [email protected].

Katie McLaughlin,

Secretary, Django Software Foundation

Read: https://www.djangoproject.com/weblog/2023/apr/15/technical-board-election/
Secure Your Project's Sensitive Information with Django-environ and .env Files

It's crucial to uphold appropriate security practices in every software development project, including the protection of sensitive data like API keys, database credentials, and other configuration settings. Using a .env file is one of the most popula...

Read: https://praveeennair.hashnode.dev/secure-your-projects-sensitive-information-with-django-environ-and-env-files
👍2
Implementing an Audit Trail Middleware in Django for Tracking User Actions in Django

This is part 2 of the series create and use custom signals in Django.
In this article, you will do some updates on the previously written code in the previous article and learn how to wrap the signal in middleware for it to be automatically fired up ...

Read: https://blog.kipchirchirlangat.com/implementing-an-audit-trail-middleware-in-django-for-tracking-user-actions-in-django
Comparison: Django REST vs FastAPI

Introduction
If you’re a backend developer, you’ve probably come across various Python frameworks like Django and FastAPI. Each framework is in high demand and commonly utilized for web or API development. We have completed numerous projects with Fas...

Read: https://vervesystems.hashnode.dev/comparison-django-rest-vs-fastapi
Дайджест Tproger: ⅓ россиян бесят коллеги, нейросеть хочет уничтожить людей

Дайджест Типичного программиста Держите выжимку из самых полезных и интересных материалов в IT-сфере за последние дни.

Читать: «Дайджест Tproger: ⅓ россиян бесят коллеги, нейросеть хочет уничтожить людей»
Adding single sign-on to your Django web application using OIDC

Single sign-on (SSO) is a session and user authentication technique that permits a user to use one set of login credentials to authenticate with multiple apps. SSO works by establishing trust between a service provider, usually your application, and ...

Read: https://fusionauth.hashnode.dev/adding-single-sign-on-to-your-django-web-application-using-oidc
Связь Django и PostgreSQL внутри Docker

Приветствую всех!

Предполагаю, что если вы нашли эту статью, то уже знакомы с процессом установки Docker и использования Django, поэтому не буду расписывать их детально.

Я работаю на windows, поэтому если у вас другая операционная система, то команды могут отличаться.


Читать: https://habr.com/ru/articles/729610/
Дайджест Python #7: аналоги ChatGPT и обновления фреймворков

Собрали лучшие новости о Python с 1 по 15 апреля. Узнайте, как написать свой Duolingo и как изменились фреймворки для работы с Big Data.

Читать: «Дайджест Python #7: аналоги ChatGPT и обновления фреймворков»
👍1
403, 404 или 405. Разбираемся со статусами во ViewSet’ах DRF

Идея делать нормальный REST на Django – утопия, но некоторые моменты настолько логичные и нет одновременно, что об этом хочется писать. Ниже история про то, как мы сделали ViewSetот GenericViewSetи пары миксинов в DRF, покрыли это все тестами и получили местами странные, но абсолютно обоснованные коды ответов.

Текст может быть полезен новичкам (или чуть более прошаренным) в Django, дабы уложить в голове формирование url’ов и порядок вызова методов permission-классов. Ну а бывалые скажут, что все это баловство и надо было использовать GenericApiView.


Читать: https://habr.com/ru/articles/729844/
👍3