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
How To Add a Text Editor To A Django Blog With Summernote

Building a blog with Django is a popular project for beginners but how many people would actually use the end result?
Most tutorials use a TextField to store the post body with HTML's default textarea widget. This isn’t very good on its own because t...

Read: https://aliceridgway.hashnode.dev/how-to-add-a-text-editor-to-a-django-blog-with-summernote

@django_prog
What **kwargs are & when to use them in your Django project

kwargs is short for "keyword arguments", which are optional arguments of a Python function.
In Django, you may come across functions which contain *args and/or **kwargs as inputs.
As someone who learned Django without prior experience in Python, I fo...

Read: https://aliceridgway.hashnode.dev/what-kwargs-are-when-to-use-them-in-your-django-project

@django_prog
How to set up Black to automatically format your Django project

Black is an auto-formatter for Python projects. It can be configured to automatically format your code when you save your files. This means you will spend less time formatting your code and have your code formatted in a clear and consistent way.
Blac...

Read: https://aliceridgway.hashnode.dev/how-to-set-up-black-to-automatically-format-your-django-project

@django_prog
How to keep track of packages for your Django project with pip-tools

As a developer, it is important to keep track of what 3rd party packages are installed on your virtual environment. In order for your project to work on other machines, you need to make sure each environment uses the same packages and the same versio...

Read: https://aliceridgway.hashnode.dev/how-to-keep-track-of-packages-for-your-django-project-with-pip-tools

@django_prog
How to Generate Fake Data for your Django Project with Faker

Development is more efficient when you have data to work with. It’s hard to visualise what some of your pages will look like without data to fill them. For example, you don’t want to discover issues with your page layouts until after you go Live.
Cre...

Read: https://aliceridgway.hashnode.dev/how-to-generate-fake-data-for-your-django-project-with-faker

@django_prog
How to Fix Django's NoReverseMatch Error

A NoReverseMatch error is a common Django error and one that can often be fixed with just one line of code.
NoReverseMatch at /
Reverse for 'index' not found. 'index' is not a valid view function or pattern name.


The cause of the error is likely to...

Read: https://aliceridgway.hashnode.dev/how-to-fix-djangos-noreversematch-error

@django_prog
Django Annotate: 7 Examples to Supercharge your Querysets

Want to feel powerful? Learn how to use the .annotate() method on your querysets. While your less experienced colleagues write multiple queries and for loops to get the result they are looking for, you can get your queryset to do all the heavy-liftin...

Read: https://aliceridgway.hashnode.dev/django-annotate-7-examples-to-supercharge-your-querysets

@django_prog
How to Filter Django QuerySets - 15 Examples For Beginners

I am going to show you how to filter your Django QuerySets. There are lots of tips and tricks to write more powerful Django queries. By applying the skills in the examples, you will build your confidence using Django ORM and writing better queries fo...

Read: https://aliceridgway.hashnode.dev/how-to-filter-django-querysets-15-examples-for-beginners

@django_prog
Basic User Registration with Django

This tutorial is going to cover how to create users in Django in the most basic way possible.
This tutorial covers:

Adding a URL pattern to urls.py

Creating a user registration form in forms.py

Creating a view in views.py


The need to handle pass...

Read: https://aliceridgway.hashnode.dev/basic-user-registration-with-django

@django_prog
Django Login & Logout Tutorial

Adding login and logout to your Django application is very quick and doesn't require lots of custom code. However, it relies a lot on features built into Django, which can be confusing. I am going to show you the quickest way to log users in.
This is...

Read: https://aliceridgway.hashnode.dev/django-login-logout-tutorial

@django_prog
How to Log Users In With Their Email

What makes Django different to other web frameworks is it includes a model for users. This means it is possible to add user registration to your project without having to create a table to store user data in the database yourself.
I recently wrote a ...

Read: https://aliceridgway.hashnode.dev/how-to-log-users-in-with-their-email

@django_prog
User Registration with Django REST Framework

User registration with Django REST Framework (DRF) can be challenging because you don't have the advantage of Django's built in user model. I am going to show you how to implement user registration with an API, without compromising user passwords.
Pr...

Read: https://aliceridgway.hashnode.dev/user-registration-with-django-rest-framework

@django_prog
How to Create Rows in the Database with Django ORM

Django ORM (Object Relational Mapper) allows your application to modify your database with Python. This means you won't have to write any SQL to manage your database. Django ORM will convert your code into SQL for you.
I am going to show you two ways...

Read: https://aliceridgway.hashnode.dev/how-to-create-rows-in-the-database-with-django-orm

@django_prog
Add Vue to your Django templates with Vite

When you take a course in Vue, you're normally taught how to build a Single Page Application (SPA). This is where you build an interactive user interface but it's not a full-stack application on its own. You will need an API to supply data to your SP...

Read: https://aliceridgway.hashnode.dev/add-vue-to-your-django-templates-with-vite

@django_prog
The Django Developer's Guide to Vite

What is the best way to add JavaScript to a Django project? It is often a question of how much JavaScript are you prepared to add to your frontend.
At one extreme, you could just write Vanilla JavaScript and import it into your templates. When you fi...

Read: https://aliceridgway.hashnode.dev/the-django-developers-guide-to-vite

@django_prog
Markdown-powered emails in Django

Programmatically sending "nice-looking" HTML emails with minimal effort is hard. This is why projects like MJML exist. MJML is cool, but I think it comes with some bit of overhead, as you have to learn (and write) the markup and design the layouts (y...

Read: https://blog.victor.co.zm/markdown-powered-emails-in-django

@django_prog
👍3
Django Signals : Built-in signals

Django comes equipped with a powerful feature known as signals. Signals provide a way to allow various parts of your application to communicate asynchronously, enabling modular and extensible behavior. In this blog post, we'll take a closer look at s...

Read: https://blog.nischallamichhane.com.np/django-signals-built-in-signals

@django_prog
Django Signals: Surface Overview

In the dynamic world of web development, Django stands out as a powerful framework for crafting robust and scalable web applications. Among its many features, Django Signals emerge as a hidden gem, offering developers a mechanism to decouple various ...

Read: https://blog.nischallamichhane.com.np/django-signals

@django_prog
👍2
Django + React. Авторизация с помощью сессий между разными источниками

Всем здравия! Сегодня будет рассмотрена авторизация с помощью сессий между Django и React, которые находятся на разных доменах, т.е случай "cross-origin". Я в двух словах донесу принцип работы, причины появления концепций и технологий описанных здесь, оставлю ссылки на более подробные источники и приведу код конкретной реализации с объяснением своих шагов. Кого интересует полный код, он находится на GitHub.


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

@django_prog
Day 88 (Project-9): Deploying Django Todo App on AWS EC2 with Kubernetes 🌟

Project Description 📝
In this project, we embark on deploying a Django Todo application on AWS EC2 utilizing a Kubeadm Kubernetes cluster. Kubernetes Cluster aids in auto-scaling and auto-healing, enhancing the reliability and scalability of our app...

Read: https://davender.hashnode.dev/day-88-project-9-deploying-django-todo-app-on-aws-ec2-with-kubernetes

@django_prog
2
Day 28 : Jenkins Agents

Jenkins Master (Server)
Jenkins’s server or master node holds all key configurations. Jenkins master server is like a control server that orchestrates all the workflow defined in the pipelines. For example, scheduling a job, monitoring the jobs, etc....

Read: https://prathmeshh.hashnode.dev/day-28-jenkins-agents

@django_prog