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 Form Validation

Introduction
In this article, I will show you how form validation works in Django. I will also show you how to write your own custom validators. Understanding how this process works is very important because most web applications use forms to grab in...

Read: https://harunacodes.com/django-form-validation
🔥1
Handling exceptions in Django from middleware

A problem that many Django programmers face is uncaught exceptions triggering a 500 HTTP response. Even when you think you have covered all cases, there might be some external package that raises something else than you expect.
One elegant way to cop...

Read: https://deepintodjango.com/handling-exceptions-in-django-from-middleware
Handling exceptions in Django in the middleware

A problem that many Django programmers face is uncaught exceptions triggering a 500 HTTP response. Even when you think you have covered all cases, there might be some external package that raises something else than you expect.
Most people solve this...

Read: https://deepintodjango.com/handling-exceptions-in-django-in-the-middleware
Starting A Django Project

To start a Django project, you will need to have Python and Django installed on your system. If you don't have them installed, you can install them using the following steps:
Install Python by downloading the latest stable release from the official w...

Read: https://favourtech.hashnode.dev/starting-a-django-project
🤯3
Why Virtualenv is Important for Django Development?

# Why Virtualenv is Important for Django Development

## Create a separate virtual environment for each project:
`Virtualenv` is a tool that allows you to create a separate Python environment for each `Django` project you work on. This can be particu...

Read: https://sarahthedeveloper.hashnode.dev/why-virtualenv-is-important
I had to integrate few React components in a Django View using jQuery: A Journey

A small journey into my Tech World filled with bizarre experiences. One such instance that comes to mind is when I had to make some enhancements to an existing UI that was written earlier. The older Tech Stack was Django-based SSR (using View Templat...

Read: https://theprodev.hashnode.dev/rendering-react-component-in-django-jquery-ui
Deploy Django App with AWS Elastic Beanstalk and AWS RDS Database

This blog post outlines the process for deploying a Django web app to the cloud using AWS Elastic Beanstalk. The application data is stored in a database that is also cloud-hosted using an AWS Relational Database Service (RDS) DB instance.
Objectives...

Read: https://fafacodes.hashnode.dev/deploy-django-app-with-aws-elastic-beanstalk-and-aws-rds-database
Deploy Django App with AWS Elastic Beanstalk and AWS RDS

This blog post outlines the process for deploying a Django web app to the cloud using AWS Elastic Beanstalk. The application data is stored in a database that is also cloud-hosted using an AWS Relational Database Service (RDS) DB instance.
Objectives...

Read: https://fafacodes.hashnode.dev/deploy-django-app-with-aws-elastic-beanstalk-and-aws-rds
Django: Views and URL Mapping

When I started learning Django, it took me a while to understand the concept of views and URLs mapping especially when you learn from random dudes on YouTube. one time your web app is correctly producing views for each request and the next it's produ...

Read: https://savviesammie.hashnode.dev/django-views-and-url-mapping
10 Amazing Books for A Django Developer 📚

As a Software Developer, you should always try to know more and more.one of the ways that you can easily learn from it, it's reading books.there are a lot of valuable books to help you out in this field and they can change your level "From Zero To He...

Read: https://amirhomayoon.hashnode.dev/10-amazing-books-for-a-django-developer
Types of Errors in Django

While working with Django, we all have faced several types of errors. Let's have a quick look at some most common types of them.
P.S. There are many more types of them and the ones covered here are just the ones that I faced working with it till now....

Read: https://swap33377.hashnode.dev/types-of-errors-in-django
How We implemented Audit in our SaaS Django Platform

Context: what is Audit?
A while back with my team when working on a project we needed to add some audit features on the platform to be able to trace what happened in the app and show it to the end users and use it also for customer support requests, ...

Read: https://blog.adonissimo.com/how-we-implemented-audit-in-our-saas-django-platform
👍1
Maximizing Your Django Development: 6 Expert Tips

Django is a powerful web framework, but there are a few things you should keep in mind to make your work smoother and more effective. Here are the top tips that will make a difference in your Django project:
1. Use virtualenv
Virtualenv is a tool tha...

Read: https://sarahthedeveloper.hashnode.dev/maximizing-your-django-development-6-expert-tips
Using `.env` file in a Django Project

A .env file is a file that resides at the root of a Django project. It is used to store environment variables. Environment variables are stored in key-value pairs.
Sensitive information such as passwords, secret keys, client IDs, or API keys is advis...

Read: https://allthingstechie.hashnode.dev/using-env-file-in-a-django-project
Context Processors in Django

Introduction:
Django is a powerful web framework that follows the principles of the Don't Repeat Yourself (DRY) philosophy. One way that Django achieves this is through the use of Context Processors. In this article, we'll take a closer look at what ...

Read: https://sarahthedeveloper.hashnode.dev/context-processors-in-django
Creating App in Django

First of all, You need to set up the project if you have not done yet then check this article.
After creating a project your file structure will look like the below.
myproject
__init__.py
asgi.py
settings.py
urls.py
wsgi.py
manage...

Read: https://nileshdarji.hashnode.dev/creating-app-in-django
Writing Views in Django

In Django, a view is a Python function that takes a web request and returns a web response. The response can be in the form of HTML, JSON, XML, Image or anything at all. Yes anything
Below is a simple view that displays a message to the user
from dja...

Read: https://akolade.hashnode.dev/writing-views-in-django
Reducing queries for ForeignKeys in Django admin inlines

Speed up with raw_id_fields
ForeignKeys in the Django admin show as a select-box () by default. This will result in a query for every item in the select, only to get the name. This is not a problem if the model you're referencing will always ...

Read: https://deepintodjango.com/reducing-queries-for-foreignkeys-in-django-admin-inlines
Optimizing Database Queries in Django: A Guide to select_related and prefetch_related

In Django, select_related and prefetch_related are two functions that can be used to optimize database queries. They are particularly useful when working with foreign keys and many-to-many relationships, as they allow you to retrieve related objects ...

Read: https://blog.devjunction.in/optimizing-database-queries-in-django-a-guide-to-selectrelated-and-prefetchrelated
Creating a custom choice field for enums in Django REST Framework

The problem with ChoiceField
In Django REST Framework, there is a field called ChoiceField which can be used when you have certain choices for a field in your REST API. For example, let's imagine you were creating an API to convert colors to their re...

Read: https://blog.sarmad.ai/django-rest-framework-enum-choice-field