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 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
simple e-commerce website using Django step by step

Step 1: Setup Django Project
First, make sure you have Django installed. If not, you can install it using pip:
pip install django

Now, let's create a new Django project called "ecommerce":
django-admin startproject ecommerce
cd ecommerce

Step 2: Cr...

Read: https://ansarshaik965.hashnode.dev/simple-e-commerce-website-using-django-step-by-step

@django_prog
Comparing Flask and Django for Python Web Development

Python has become one of the most popular programming languages for web development, thanks to its simplicity, readability, and vast ecosystem of libraries and frameworks. Among the various web frameworks available, Flask and Django stand out as two ...

Read: https://blog.bytescrum.com/comparing-flask-and-django-for-python-web-development

@django_prog
Simplifying RESTful APIs with Django Rest Framework and HyperlinkedModelSerializer

Introduction:
In the world of web development, creating robust APIs is a crucial aspect of building scalable and maintainable applications. Django, a high-level Python web framework, provides a powerful toolset for developing web applications and API...

Read: https://prakash0091.hashnode.dev/simplifying-restful-apis-with-django-rest-framework-and-hyperlinkedmodelserializer

@django_prog
Как стать Python-разработчиком бесплатно? Программа обучения с нуля

Если вбить фразу «python разработка» в поисковую строку, можно найти огромное количество курсов по данному направлению. Дело в том, что все курсы являются платными и, как правило, имеют ценник в несколько десятков тысяч рублей.

Чтобы разбавить обилие платных курсов, мы подготовили для вас программу обучения «Python-разработчик с нуля», которая состоит только из бесплатных курсов.


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

@django_prog
👍1
How to create a django project?

Step 1: Install Python
brew install python

Step 2: Install Virtual Environment
Virtual environments help manage dependencies and avoid conflicts. To create a virtual environment, you can use venv, which is included with Python
python -m venv myenv

...

Read: https://bikash8848.hashnode.dev/how-to-create-a-django-project

@django_prog
___
Другие наши проекты
👍1
Webflow to Django: Template Preparation Guide

I love Webflow for designing UI, and I love Django for developing REST API’s. I wanted to try combining the two.
I have a project in Django where I give the user the ability to create their own SaaS landing page based off a set of template choices (a...

Read: https://rcmisk.com/webflow-to-django-template-preparation-guide

@django_prog
___
Другие наши проекты
The Ghost in the Load Balancer: A Production Deployment Nightmare

As a seasoned software engineer with a decade under my belt, I've seen my fair share of production deployment disasters. But one night, in the wee hours before a major product launch, I encountered a bug that nearly drove my boss to defenestration.
I...

Read: https://blog.ahmadwkhan.com/the-ghost-in-the-load-balancer-a-production-deployment-nightmare

@django_prog
___
Другие наши проекты
2
Django step by step ( Part - 1 )

Beat way to learn something is to start building some project
# Multi-vendor-ecommerce Application 📝
This is the Multi-Vendor ecommerce website. Customers can purcahse
web scripts for various technologies. like Theme forest, inverto etc.
## Project ...

Read: https://himanshichoudhary.hashnode.dev/django-step-by-step-part-1

@django_prog
___
Другие наши проекты
Как создать волшебника в Django: многошаговые формы

Сегодня мы поговорим о магии, но не той, что преподают в Хогвартсе. Речь пойдет о создании волшебника, точнее многошагового мастера форм в Django, который позволяет пользователю шаг за шагом продвигаться к желаемому результату. Эта статья расскажет, как использовать django-formtools для реализации волшебства на вашем сайте.

А причем тут магия? Узнаете чуть позже.


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

@django_prog
___
Другие наши проекты
Implement HTMX modal in Django

In this article, we will use htmx in Django to display data using modal that look like this.

For keeping the article to a manageable size, here are the things that I keep out:

setting up htmx and hyperscript.

Setting up a tailwindcss. Don't worry,...

Read: https://filehop.hashnode.dev/htmx-modal-django

@django_prog
___
Другие наши проекты
Django part : 4

Reset Django Admin Password
python manage.py changepassword <usernameReplace <usernamewith the username of the admin user whose password you want to reset.
You'll be prompted to enter a new password for the specified user. Follow the prompts to ...

Read: https://akashpawar.hashnode.dev/django-part-4

@django_prog
___
Другие наши проекты
Web Dev: Understanding CSRF and XSS

CSRF (Cross-Site Request Forgery) and XSS (Cross-Site Scripting) are both security vulnerabilities that can affect web applications.

CSRF (Cross-Site Request Forgery):

CSRF is an attack where a malicious website tricks a user's browser into perform...

Read: https://nikhilakki.in/web-dev-understanding-csrf-and-xss

@django_prog
___
Другие наши проекты
Setting Up Celery, Celery Beat, Redis, and Django

This guide will walk you through the detailed process of setting up and using Celery with Redis in a Django application. We'll cover task creation, enqueuing tasks, using Redis as a message broker, processing tasks with Celery workers, and scheduling...

Read: https://devendraadhikari.com.np/setting-up-celery-celery-beat-redis-and-django

@django_prog
___
Другие наши проекты
👍2
How To Implement Swagger In Django Rest Framework (drf)

INTRODUCTION:
Swagger is an open-source framework that helps developers design, build, document, and consume RESTFUL web services. It is used to document APIs, which helps the developers to understand the basic behavior of every endpoint created. It...

Read: https://mamuro.hashnode.dev/how-to-implement-swagger-in-django-rest-framework-drf

@django_prog
___
Другие наши проекты
2👍2