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

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

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

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

Другие наши проекты: https://tprg.ru/media
Download Telegram
Setting up ad hoc environments for Django applications with AWS ECS, Terraform and GitHub Actions

tl;dr
This article will show how software development teams can build on-demand instances of a web application project for dog-food testing, quality review, internal and external demos and other use cases that require short-lived but feature-complete...

Read: https://briancaffey.hashnode.dev/setting-up-ad-hoc-environments-for-django-applications-with-aws-ecs-terraform-and-github-actions
О том, как в питоне без протокола и задеплоить приложение не могут. Смешиваем ASGI с WSGI — вредные советы

Как должны выглядеть современные сервисы на питоне, многие имеют представление. Все они так или иначе имеют поддержку асинхронных операций. А вот как их лучше деплоить? Здесь некоторые руководства (как FastAPI) отвели целый раздел для рекомендаций, а некоторые (как Django) ограничились несколькими абзацами с крайне размытыми формулировками. Мне не посчастливилось следовать именно последнему.

Вероятно, прочитав эту статью, Вы захотите внести изменения в докерфайлы Ваших сервисов. Благодаря протоколам WSGI и ASGI, это можно сделать без особого труда. Именно поэтому все изложенные в статье советы - вредные. Также Вы узнаете о nginx unit - ещё об одном годном сервере приложений.


Читать: https://habr.com/ru/post/671604/
🔥1
Django | forgot username & password

4 months ago, I started a django project with the admin module, but soon stopped using . Yesterday, I tried to start it and found that I forgot the admin password.
How to get it back? Let's use the python shell.
Using the Python shell (in terminal)
...

Read: https://beareatapple.hashnode.dev/django-or-forgot-username-and-password
Django - forgot username & password

4 months ago, I started a django project with the admin module, but soon stopped using . Yesterday, I tried to start it and found that I forgot the admin password.
How to get it back? Let's use the python shell.
Using the Python shell (in terminal)
...

Read: https://beareatapple.hashnode.dev/django-forgot-username-and-password
Django News - Last Chance for a DjangoCon Europe 2023 - Jun 17th 2022

Read: https://django-news.com/issues/132
Django News - Last Chance for a DjangoCon Europe 2023 - Jun 17th 2022

Read: https://django-news.com/issues/132
Introduction to Django

In this very first article of our Django for Beginners series, we'll learn what Django is. We'll discuss its features, functionalities, and almost everything we need to get started with it. So, let's dive in!
What is Django?
Django is a high-level ...

Read: https://ashutoshkrris.hashnode.dev/introduction-to-django
Before I begin...

I've always been fascinated with building things with code. Back when MySpace was a thing, I remember spending countless hours on customizing my profile with custom HTML and inline CSS. But coding remained a hobby. Plus, I didn't like science enough ...

Read: https://djangojourney.hashnode.dev/before-i-begin
A quick overview of what I'm building

The goal of my Django journey is to re-build the existing platform for my startup, which is used by roughly 2,500 empoyees across 160 businesses. I think this is the right moment to do so, since I know just enough Django do match the features our cur...

Read: https://djangojourney.hashnode.dev/a-quick-overview-of-what-im-building
Creating custom User models

It's time to get started with development! In case you missed it, I encourage you to check out my first and second posts on this blog in order to understand what this series is about.
Let's create a new Django project call benefits. I'm using an M1 M...

Read: https://djangojourney.hashnode.dev/creating-custom-user-models
Creating custom User models in Django

It's time to get started with development! In case you missed it, I encourage you to check out my first and second posts on this blog in order to understand what this series is about.
Let's create a new Django project call benefits. I'm using an M1 M...

Read: https://djangojourney.hashnode.dev/creating-custom-user-models-in-django
Setting up a Django Project

In this blog, we will install Django and set up a sample project to see what all files are generated by Django. We will discuss each file thoroughly. If you haven't gone through the previous blog yet, please read it here.
How to install Django?
Sin...

Read: https://ashutoshkrris.hashnode.dev/setting-up-a-django-project
Hey Django & Graphql

I have been flirting with Graphql for some time now and yes yes I have heard it all from how it reduces over and under fetching all the way to it is the best tool for building APIs. For the Rest fans out there this is not an article to convince you t...

Read: https://devjatta.hashnode.dev/hey-django-and-graphql
Python : Make Your First Django Project + Some Secret Hacks

Prerequisite

Download Visual Studio (We recommend it) or any other IDE

Download Python

Make a virtual environment


virtualenv env

Activate virtual environment

env\Scripts\activate

Install Django

pip install Django
Lets start with Django
...

Read: https://blog.hack2skill.com/python-make-your-first-django-project-some-secret-hacks
Send emails from Gmails without turning on "Allow less secure apps."

From May 2022, Google will no longer support the use of third-party apps or devices which ask you to sign in to your Google Account using only your username and password. You can read more about the update here

A large percentage of tutorials on con...

Read: https://maryam.hashnode.dev/send-emails-from-gmails-without-turning-on-allow-less-secure-apps
Send emails from Gmail without turning on "Allow less secure apps."

rom May 2022, Google will no longer support the use of third-party apps or devices which ask you to sign in to your Google Account using only your username and password. You can read more about the update here

A large percentage of tutorials on conn...

Read: https://maryam.hashnode.dev/send-emails-from-gmail-without-turning-on-allow-less-secure-apps
How To Use Django Signals

Introduction
In this technical discourse, I will introduce you to Django Signals, how to use them, and where and when to use them. By the end of this article, you should:

have a firm understanding of the Django signals
be able to create a function t...

Read: https://dracodes2.hashnode.dev/how-to-use-django-signals
Pytest - How to test that a function is called with specific parameters?

Unit tests are written to test single possible units of your system. When you interact with an external system, such as reading a file from AWS S3, your tests must run without any dependency on this external system. The standard testing practice for ...

Read: https://thelearning.dev/pytest-how-to-test-that-a-function-is-called-with-specific-parameters
Senior Python Full Stack Developer (100% Remote Job)

Overview of the Role
We are looking for a smart and enthusiastic Senior Full Stack Developer to join our development team. Your primary focus will be the development of server-side logic ensuring high performance and responsiveness to requests, as we...

Read: https://sojinsamuel.hashnode.dev/senior-python-full-stack-developer-100-remote-job
👍2
Integrating hCaptcha with Django-allauth

We may face issues when someone uses bots to abuse our system and send automated signup/password reset to random people. So hCaptcha is a really good way to avoid bots.
Setting Up hCaptcha account

First we need new hCaptcha account. If you don't ha...

Read: https://dilutewater.hashnode.dev/integrating-hcaptcha-with-django-allauth
Django 4.1 beta 1 released

Django 4.1 beta 1 is now available. It represents the second stage in the 4.1
release cycle and is an opportunity for you to try out the changes coming in
Django 4.1.

Django 4.1 has an profusion of new features which you can read about in the in-development 4.1 release notes.

Only bugs in new features and regressions from earlier versions of Django will be
fixed between now and 4.1 final (also, translations will be updated following the
"string freeze" when the release candidate is issued). The current
release schedule
calls for a release candidate in a month from now with the
final release to follow about two weeks after that around August 3. Early and often
testing from the community will help minimize the number of bugs in the release.
Updates on the release schedule schedule are available on the django-developers mailing list.

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 beta package from our downloads page or on PyPI.

The PGP key ID used for this release is Carlton Gibson: E17DF5C82B4F9D00.

Read: https://www.djangoproject.com/weblog/2022/jun/21/django-41-beta-1-released/
👍1