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 automated deployments to Digital ocean using GitHub actions

In this article, you will learn how to build an automated GitHub actions pipeline that deploys a Django application to a digital ocean droplet.
Prerequisites:

A GitHub account.

A docker hub account.

A digital ocean account.


1 Base application.
F...

Read: https://blog.kipchirchirlangat.com/django-automated-deployments-to-digital-ocean-using-github-actions
A Comprehensive Beginner’s Guide to Learning Django Web Development

Introduction: What is Django and How it Can Help Web Developers?
Django is a free and open-source web application framework written in the Python programming language. It is designed to help developers create complex, database-backed web applications...

Read: https://sense.hashnode.dev/a-comprehensive-beginners-guide-to-learning-django-web-development
How to Check if a File Exists With Python

Checking if a file exists is a common task in while working with files. There are several ways to check if a file exists without raising an unwanted exception, each with its own advantages and disadvantages.

Here are a few different approaches.

1. Using the os.path.exists()function

This method uses the os.pathmodule to check if …

Read: https://djangocentral.com/how-to-check-if-a-file-exists-with-python/
How to Iterate Over Rows in a Dataframe in Pandas

Pandas is a powerful library for working with data in Python, and the DataFrame is one of its most widely used data structures. One common task when working with DataFrames is to iterate over the rows and perform some action on each row.

Here are a few different approaches for iterating over rows in a DataFrame in Pandas:

1. Using …

Read: https://djangocentral.com/how-to-iterate-over-rows-in-a-dataframe-in-pandas/
How to Revert the Last Migration in Django

In Django, migrations are used to manage changes to the database schema, such as creating or modifying tables. Sometimes, you may need to revert the last migration to undo changes that were made to the database.

Here's how you can revert the last migration in Django.
Note- First, make sure that you have a backup of your database before making …

Read: https://djangocentral.com/how-to-revert-the-last-migration-in-django/
Understanding related_name in Django Models

In Django, related_nameis an attribute that can be used to specify the name of the reverse relation from the related model back to the model that defines the relation. It is used to specify the name of the attribute that will be used to access the related model from the reverse side of the relation.
This attribute is particularly …

Read: https://djangocentral.com/understanding-related-name-in-django-models/
Capturing Query Parameters of request.get in Django

In Django, the request object contains a variety of information about the current HTTP request, including the query parameters. Query parameters are a way to pass additional information in the URL and are used to filter or sort data.

The request object provides a convenient way to access query parameters through the GET attribute.
The GET attribute is a dictionary-like object …

Read: https://djangocentral.com/capturing-query-parameters-of-requestget-in-django/
A comparison of different Python web frameworks and when to use each one

Python is a versatile and powerful programming language that is widely used for web development. There are several web frameworks available for Python that can help developers build web applications quickly and easily. However, with so many options t...

Read: https://webwise.hashnode.dev/a-comparison-of-different-python-web-frameworks-and-when-to-use-each-one
Using htmx and Server-side DataTables.net together in a Django Project

Background
I really enjoy using htmx alongside Django, and try to help others when they're learning to combine these two tools. I often see questions online asking about how to combine htmx with DataTables (aka DataTables.net). Honestly, this threw m...

Read: https://til.jacklinke.com/using-htmx-and-server-side-datatables-net-together-in-a-django-project
Django Middlewares: Types and Custom Middleware

Middleware is a framework of hooks into Django's request/response processing. It is a light plugin system for altering Django’s input or output. Each middleware component is responsible for doing some specific function. You can use middleware if you ...

Read: https://bharat-phalak-blogs.hashnode.dev/django-middlewares-types-and-custom-middleware
A Step-by-Step Guide to the Django Rest Framework Tutorial

Overview of the Django Rest Framework
The Django Rest Framework (DRF) is a powerful and flexible toolkit for building Web APIs. It provides a full suite of features for developing RESTful APIs, including serialization, authentication, URL routing, an...

Read: https://sense.hashnode.dev/a-step-by-step-guide-to-the-django-rest-framework-tutorial
Elastic Search with Django Rest Framework

Objective: Adding a full-text search in Django Rest Framework using elastic search.
What is Elastic Search?
Elasticsearch is a distributed, open-source search and analytics engine designed for handling large volumes of data. It is built on top of the...

Read: https://sagaryadav17.hashnode.dev/elastic-search-with-django-rest-framework
Дайджест Python: итоги 2022 года, обзор версии 3.11 и курсы от Google

Дайджест интересных статей о Python: что нового в версии 3.11, гайды по программированию на Python и обучающие статьи.

Читать: «Дайджест Python: итоги 2022 года, обзор версии 3.11 и курсы от Google»
👍1🔥1🌚1
Understanding Models in Django

Django is a popular web framework for building web applications in Python. One of the key features of Django is its support for models, which allow developers to define the structure of the data that their applications will work with. In this blog po...

Read: https://nileshdarji.hashnode.dev/understanding-models-in-django
Testing and Modules

What are Unit tests and TDD?
Unit tests:
Unit tests are some pieces of code that exercise the input, the output, and the behavior of your code.
TDD tests:
Test-Driven Development is a strategy that entails first thinking about (and writing!) tests.

...

Read: https://sarahthedeveloper.hashnode.dev/testing-and-modules
Django Channels - Building Real-time Web Applications with Django

Django is a widely used web framework for building web applications with Python. However, it's built mainly for synchronously handling HTTP requests and responses. With the rise of real-time web applications such as online multiplayer games, chat app...

Read: https://sarahthedeveloper.hashnode.dev/building-real-time-web-applications-with-django
Getting Started With Django Web Sockets: A Step-by-Step Guide

What Are Django Web Sockets?
Django Web Sockets are a Django-specific implementation of web sockets that make it easier for developers to build web applications with real-time features. By leveraging the WebSocket protocol, developers can create inte...

Read: https://sense.hashnode.dev/getting-started-with-django-web-sockets-a-step-by-step-guide
Launching my E-book on Django Signals Demystified: A Step-by-Step Guide to Event-Driven Programming

Are you tired of tightly coupled code and struggling to keep track of events in your Django application? Look no further! Our new e-book, "Django Signals Demystified: A Step-by-Step Guide to Event-Driven Programming" is here to help you master the po...

Read: https://blog.devjunction.in/launching-my-e-book-on-django-signals-demystified-a-step-by-step-guide-to-event-driven-programming
Wagtail finding url name for submitting new translation

We're adding Translations tab to the wagtail admin edit pages. Something like this:-

And if there's no translation yet, add link for creating new translation like this:-

So I was scouring wagtail github repo looking for the url name to be used in t...

Read: https://grep.koditi.my/wagtail-finding-url-name-for-submitting-new-translation