Django Unleashed Framework
1.42K subscribers
2.21K photos
1 video
2.64K links
Лучшие материалы по разработке на фреймворке Django на русском и английском языке

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

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

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

Другие наши проекты: https://tprg.ru/media
Download Telegram
Datta Able Django - Free Template

Hello!
This article presents an open-source Django Template built on top of a colorful, pixel-perfect BS4 design. Django Datta Able can be downloaded from Github (MIT License) and used for unlimited hobby & commercial projects. For newcomers, Django...

Read: https://app-generator.hashnode.dev/datta-able-django-free-template
👍1
A few words about memory profiling in Python

Memory issues in applications are quite common. Luckily, in Python you have to work with memory directly only when writing CPython extensions, so you have to deal with such issues less often. Using frameworks also reduces the risks of causing memory ...

Read: https://blog.filonov.dev/a-few-words-about-memory-profiling-in-python
setUp() & tearDown() in Python Unit Testing

I'm pretty sure you've already used/seen unit tests in the projects before. Have you ever wondered about how Django actually prepares you an isolated environment for testing your project without affecting other resources like your database? Before we...

Read: https://imsadra.me/setup-and-teardown-in-python-unit-testing
Today I learned: How to setup and work with the virtual environment in Django and why you should use it

What is a virtual environment?
A virtual environment is a set of version or local settings that is specific to a particular project, instance or any entity which uses that environment. In simple terms, you create an environment that satisfies the nee...

Read: https://thinkersclub.xyz/today-i-learned-how-to-setup-and-work-with-the-virtual-environment-in-django-and-why-you-should-use-it
Prefetching in Django

A lot has already been written about prefetching, as it is one of the best ways to improve performance for slow admin pages. I'd like to share some tricks to be able to work with large amounts of rows and inlines.
Using prefetch_related and select_re...

Read: https://blog.jurriantromp.nl/prefetching-in-django
Prediction of house price using Machine Learning and host a Django website on heroku

In this post, we will do a simple machine learning project to predict the Boston house price and build a simple website using Django. The website will be then hosted on heroku web hosting platform. For the model, we are just going to create a basic m...

Read: https://wulfi.hashnode.dev/prediction-of-house-price-using-machine-learning-and-host-a-django-website-on-heroku
Django News - New PSF Executive Director - Apr 8th 2022

Read: https://django-news.com/issues/122
Django News - New PSF Executive Director - Apr 8th 2022

Read: https://django-news.com/issues/122
How To Deploy A Django App To Heroku

HEROKU?
Yes! Heroku. It is a web-based platform that allows you to deploy and manage web applications so that they can be accessible by anyone within their browser. Heroku supports many programming languages including Python/Django!
It has a free pla...

Read: https://gracious-grace.hashnode.dev/how-to-deploy-a-django-app-to-heroku
Few hacks to speed up defining apis based on django rest framwork, inspired from fastapi

Read: https://pythonawesome.com/few-hacks-to-speed-up-defining-apis-based-on-django-rest-framwork-inspired-from-fastapi/
Создание проекта Django для регистрации и входа/выхода из системы

Поэкспериментируем с Django и расширим знания о его системе аутентификации пользователя.

Читать: Создание проекта Django для регистрации и входа/выхода из системы .
Creating Music Application

Overview
Hey there, been a while. Let's try picking up from where we stopped, now, shall we?
I would be adding some models to the project so we can upload songs into albums. You might be wondering what models are or so, yeah, it's no big deal. In my ...

Read: https://cws.hashnode.dev/creating-music-application
💩3👍1
Creating a Django application

Install Python
Get the latest version of python from the link below
https://www.python.org/downloads/
Check Python version
python --version

Check pip version
pip --version

Installing Django
python -m pip install django

Check Django Version
python ...

Read: https://ndrohith09.hashnode.dev/creating-a-django-application
Django-based Todo App

Setting your Django App
https://ndrohith09.hashnode.dev/creating-a-django-application
Here in this blog , I have created a django project called simple_todo and a django app called simple_todo_app .
The structure of your django project looks as below...

Read: https://ndrohith09.hashnode.dev/django-based-todo-app
How to Integrate Paystack in Django Rest Framework

Introduction
Paystack is a payment gateway that helps individuals and businesses in Africa to accept payments from anywhere in the world. In this tutorial, I will be creating a wallet system API using Django Rest Framework that allows users to depos...

Read: https://ubaydah.hashnode.dev//how-to-integrate-paystack-in-django-rest-framework
Асинхронный django, status update. Проект vinyl

Всем привет.

Некоторое время назад я писал про альтернативные возможности, как можно добавить в django асинхронность (есть официальный подход, изложенный в DEP-09). С тех пор у меня получилось оформить свои идеи в нечто относительно цельное, что вылилось в vinyl project. Описание проекта читайте на гитхабе, здесь же я хочу рассказать о его интересных особенностях.

Проект родился после нескольких предыдущих попыток, когда я узнал, что django, в действительности, очень неплохо расширяем. Например, он поддерживает использование нескольких баз данных одновременно (притом что модели одни и те же). Соответственно, например, ничего не мешает считать использование асинхронного драйвера как использование другой логической базы данных - чем я и воспользовался.

В итоге, получилось поместить всю асинхронную функциональность внутрь менеджера моделей. Не понадобилось делать форк django или его частей.

Вначале - небольшое демо того, что получилось. Для тестирования я использовал асинхронный драйвер psycopg3 (если что, вот ссылка на database backend).

Демо


Читать: https://habr.com/ru/post/660831/
👍1
История одного CRUD'а

В 2015 году, когда я пришёл на своё текущее место работы, мне было непривычно от необыкновенной свободы действий. Буквально, на новом месте можно было проявить весь творческий потенциал как DevOps-евангелиста. Мне нравилось выстраивать процессы, автоматизировать рутину, делать разработку удобной. Больше всего я люблю оптимизации, а больше всего ненавижу - рутину.

Эта история одной боли и попытке не просто "принять обезболивающее", а реально излечить её. Поэтому готовьтесь переварить лонгрид.
Читать это всё...

Читать: https://habr.com/ru/post/660847/
👍1
Django News - Django 4.0.4, 3.2.13, and 2.2.28 security releases - Apr 15th 2022

Read: https://django-news.com/issues/123
Django News - Django 4.0.4, 3.2.13, and 2.2.28 security releases - Apr 15th 2022

Read: https://django-news.com/issues/123
Masonite Project - Python Web Framework Installation

In this series of posts, I want to present a Python web framework that I found and I believe it makes sense to see how it handles things. The very interesting thing for me is that it brings Laravel (php web framework) goods to Python world.
According...

Read: https://blog.popolo.dev/masonite-project-python-web-framework-installation