Django Unleashed Framework
1.45K subscribers
2.18K photos
2.6K links
Лучшие материалы по разработке на фреймворке Django на русском и английском языке

Разместить рекламу: @tproger_sales_bot

Правила общения: https://tprg.ru/rules

Другие каналы: @tproger_channels

Другие наши проекты: https://tprg.ru/media
Download Telegram
Django Unleashed Framework
Photo
Django 4.2 alpha 1 released

Django 4.2 alpha 1 is now available. It represents the first stage in the 4.2
release cycle and is an opportunity for you to try out the changes coming in
Django 4.2.

Django 4.2 has a farrago of new features which you can read about in the
in-development 4.2 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 Mariusz Felisiak: 2EF56372BA48CD1B.

Read: https://www.djangoproject.com/weblog/2023/jan/17/django-42-alpha-1-released/
Models in Django

One of the key features of Django is it use of models, which are used to represent the data in a Django application. Now before we move, this is a continuation of my Django Basics series, you can read them here
What are Models
Models in Django are de...

Read: https://akolade.hashnode.dev/models-in-django
Getting Started With PostgreSQL and Django: A Comprehensive Guide

What Are PostgreSQL and Django?
PostgreSQL is a powerful, open-source database management system (DBMS). It is commonly used in the production environments of large organizations such as banks, telecommunications companies, and governments. Django is...

Read: https://sense.hashnode.dev/getting-started-with-postgresql-and-django-a-comprehensive-guide
❤‍🔥1
Using django-environ to Create Environment Variables in Django Project

To prevent exposing your sensitive data when sharing your code, environment variables are useful to save the data (either on your local machine or your production server) which your project depends on. In this article, we would learn how to use djang...

Read: https://thecodingprocess.hashnode.dev/using-django-environ-to-create-environment-variables-in-django-project
Introduction à python (partie 1)

Python est l'un des langages de programmation les plus populaires. Depuis des années, il occupe la première place dans le classement de langage de programmation les plus utilisés dans le monde entier.
Python est souvent caractérisé par sa facilité d'...

Read: https://lushidev.hashnode.dev/introduction-a-python-partie-1
how to set up and env variable in django

Environmental variables are a way to store and pass information between processes on a computer. They are commonly used to configure applications, including web frameworks such as Django.
In Django, environmental variables can be used to set up secre...

Read: https://gwill.hashnode.dev/how-to-set-up-and-env-variable-in-django
Django Key (id)=(244584) already exists, Django unique constraint primary key

Replace stock_price with the table name on which you got the unique constraint issues.
SELECT MAX(id) FROM stock_price;

ALTER SEQUENCE stock_price_id_seq START WITH 245000;

ALTER SEQUENCE stock_price_id_seq RESTART;

Read: https://rajeshpudasaini.com.np/django-key-id244584-already-exists-django-unique-constraint-primary-key
What is the Django Learning Web Development Roadmap?

Introduction to Django
Django is a high-level Python web framework that enables the rapid development of secure, scalable, and maintainable web applications. It is based on the Model-View-Controller (MVC) architectural pattern and is one of the most ...

Read: https://sense.hashnode.dev/what-is-the-django-learning-web-development-roadmap
How to set up an env variable in django

Environmental variables are a way to store and pass information between processes on a computer. They are commonly used to configure applications, including web frameworks such as Django.
In Django, environmental variables can be used to set up secre...

Read: https://gwill.hashnode.dev/how-to-set-up-an-env-variable-in-django
Bulk Actions in Table with Django, htmx, and AlpineJS

When it comes to displaying large amounts of data in a tabular format, tables are often the go-to choice for developers. However, traditional tables can be limiting in their functionality, especially when it comes to performing actions on multiple ro...

Read: https://enzircle.com/bulk-actions-in-table-with-django-htmx-and-alpinejs
Multipage Applications vs Single Page Applications

I always get this question of which is better, building an application with Nodejs (using express framework) to build a web app or if I should use NextJs ( a ReactJs framework , might be any frontend framework in your case).
You may ask what differen...

Read: https://everydaytech.hashnode.dev/multipage-applications-vs-single-page-applications
Outreachy: Week seven

This week marks the seventh week of my Outreachy internship with Wagtail Content Management System (CMS). This internship has been quite experiential, as it exposed me to a lot of new skills. Also, my old skills, such as writing, have become better.
...

Read: https://activuscode.hashnode.dev/outreachy-week-seven
Deploying your Django app on Railway

In this article, we will be deploying our Django app on Railway. Railway is a Platform as a Service (PAAS) and they offer web server and database hosting which is sufficient to deploy our app to the web.
Before moving on with this tutorial, there is ...

Read: https://blog.acel.cyou/deploying-your-django-app-on-railway
Deploying your Django app on Heroku

In this article, we will be deploying our app on Heroku. Heroku is a Platform as a Service (PAAS) and they offer web server and database hosting which is sufficient to deploy our app to the web.
Before moving on with this tutorial, there is a prerequ...

Read: https://blog.acel.cyou/deploying-your-django-app-on-heroku
Introduction to Django vs Node.js

Overview of Django vs Node.js
Django and Node.js are both popular tools for building web applications, but they have some significant differences. Django is a Python-based web framework that is designed for the rapid development and deployment of com...

Read: https://sense.hashnode.dev/introduction-to-django-vs-nodejs
👍1
Introduction to Elastic Beanstalk with Django, RDS, Docker and Nginx

Objectives

Understand the problem Elastic Beanstalk solves.

Learn the steps required to set up and deploy a Django app with Elastic Beanstalk.

Use docker for containerizing the app.

Set up Nginx as a reverse proxy server.

Learn how to connect an...

Read: https://moreabouttech.com/introduction-to-elastic-beanstalk-with-django-rds-docker-and-nginx
Асинхронный django: в защиту DEP-9

DEP-9 - это официальный "RFC" по асинхронности для проекта django . Доброе утро, дорогие читатели. Возможно, вы читали мои статьи про django, асинхронность и мой проект "fibers". Что касается проекта - автор только одуплился после новогодних праздников, новостей в этом плане нет. Вместо этого, я расскажу вам об официальном подходе, DEP-9 - насколько он хорош и как вписывается в общую картину.

Раньше я упоминал DEP-9 в своих статьях, но, к сожалению, делал это не в том ключе, котором нужно. Представление о нём у меня сформировалось на ранних этапах и во время первых попыток создания асинхронной версии django - и таким и осталось на долгое время. Я думал, что - вот, есть нативная асинхронность - asyncio, а есть всякие там адаптеры и запуск в другом потоке. Может быть, Вы думаете так же? Тогда мы идём к Вам!

Кадр взят с DjangoCon. Участникам Panel Discussion раздали листочки и задали вопрос: "How do you feel about async in django?" Вы видите автора DEP-9, Эндрю Гудвина (второй слева), поднявшего вверх большой палец, отреагировав так на вариант соседа (тот нарисовал смайл). Сам Эндрю Гудвин нарисовал галочку.
Читать

Читать: https://habr.com/ru/post/711722/
Как подключить препроцессор SASS/SCSS к Django

"Тачка на прокачку" уже давно не выходит. А вот "Django на прокачку" снова продолжает вас радовать. В сегодняшнем эпизоде мы:

1.       Узнаем, что такое препроцессоры и чем они интереснее обычного CSS;

2.       Разберёмся с SASS и SCSS, узнаем, чем они отличаются;

3.       И рассмотрим на практике, как использовать SASS/SCSS в Django-проекте.

Как обычно, меньше болтовни – больше кода. Центрирует картинку Макс. Выходит за рамки Егор. Статью написали авторы канала PyLounge. Поехали!
Подключить SASS/SCSS к Django

Читать: https://habr.com/ru/post/711954/
A walkthrough of some of the most popular and quirky techniques for building complex applications with Django

1. Caching: Caching is a process of storing data in temporary memory so that it can be accessed quickly when needed. Django provides a powerful cache framework that can be used to store data across multiple requests, reducing the number of database q...

Read: https://sense.hashnode.dev/a-walkthrough-of-some-of-the-most-popular-and-quirky-techniques-for-building-complex-applications-with-django
Introduction to Django web development

What is Django?
Django is an open-source web framework written in Python that allows for the rapid development of web applications. It was originally developed for the newspaper industry, but is now used by a variety of organizations and businesses. ...

Read: https://sense.hashnode.dev/introduction-to-django-web-development