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

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

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

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

Другие наши проекты: https://tprg.ru/media
Download Telegram
How to Import or Export Data from Django Admin?

If you have been using Django admin, you might have realized that there is no way that you can import to export some data from the Django admin panel in supported formats such as CSV, JSON or an Excel Spreadsheet etc.
Well, without wasting any time, ...

Read: https://blog.devjunction.in/how-to-import-or-export-data-from-django-admin
How to perform data validation in Django Rest Framework?

In Django Rest Framework (DRF), we get serializers to serialize our native Python data types into JSON or XML, serializers can also perform deserialization along with serialization. This means a serializer can convert a native Python data type such a...

Read: https://blog.devjunction.in/how-to-perform-data-validation-in-django-rest-framework
How to generate Swagger documentation for Rest APIs in Django Rest Framework?

Unlike our last blog, where we used DRF’s Open API schema generation to auto-generate the API documentation, in this blog, we are going to use drf-yasg to auto-generate the Swagger documentation for our Rest APIs created with Django Rest Framework.
I...

Read: https://blog.devjunction.in/how-to-generate-swagger-documentation-for-rest-apis-in-django-rest-framework
Django AdminLTE - PyPi Library

Hello Coders!
This article presents Django AdminLTE, the PyPi integration of this iconic design for Django. The latest stable version is provided by AdminLTE maintainers, including Dark Mode, widgets, charts, calendar, and Kanban board. The product ...

Read: https://app-generator.hashnode.dev/django-adminlte-pypi-library
Под капотом autofocus.su

Привет. Сегодня хочу рассказать про то, как за кулисами устроена работа моего мини-проекта по ведению задач autofocus.su. В предыдущей заметке я рассказал про принципы, лежащие в основе метода Автофокуса. А тут будет скорее набор ключевых слов с короткими описаниями того, что и как связано между собой. Конкретная реализация будет отличаться в вашем конкретном случае, но направления для поисков будут понятны.

Лично мне часто не хватает какого-то скелета работоспособного приложения, чтобы было с чего начать. Надеюсь, что буду полезен.

Начнем с бэкенда.
Начнем!

Читать: https://habr.com/ru/post/704672/
👍2
How to deploy your Django app to railway

This blog isn't just about deploying to railway but it's about fixing bugs on our road to deployment. I had watched several tutorials on how to deploy to railway but my deployment was never successful. I had to figure out the dos and don't for a succ...

Read: https://techstars.hashnode.dev/how-to-deploy-your-django-app-to-railway
Django admin tips and tricks - Part 1

Here you go:
How to make a column editable in the Django admin change list view in a Model?

We can make a column editable in the Django admin using an attribute list_editable as given in the below example. This can be helpful if you want to bulk upd...

Read: https://blog.devjunction.in/django-admin-tips-and-tricks-part-1
👍2🥱1
Django admin tips and tricks - Part 2

If you want to read Part 1 of this blog, click on this link, for this whole series, click on this link.
How to disable Add button in the Django admin for certain Model admins?
Sometimes you do not want the admin to add new entries in a Model admin, h...

Read: https://blog.devjunction.in/django-admin-tips-and-tricks-part-2
👍1👎1
Сделай сам: МИС на коленке и в облаке

Решение в облаке — фактически стандарт. Делаешь сервис по доставке воды, еды, и т.д. - делай aaS. И не важно, какой asS, главное, чтобы работало. Инфраструктура, софт, платформа, монолиты разбиваем, микросервисы внедряем, угадайте, где шарик, в смысле user.

Браузер как клиент — фактически стандарт. И не важно, что там сервер отдает: MPA, SPA, PWA, главное чтобы работало. Работало в смысле cashflow, а не просто: "красиво тут".

Но, как известно, всегда "есть один нюанс". Есть данные, чувствительные к сетевой передаче. Конфиденциальные, персональные, секретные наконец. Где храниться, как передаются, где обрабатываются — важные "нюансы". Храните персональные данные в облаке? тогда, "мы к вам уже пришли". Впрочем, если и не так серьезно, всегда найдется повод сказать: "Я этим XENам как-то не доверяю".

Делали мы тут крошечную медицинскую ИС (МИС) у себя, аккурат с нюансами передачи по сети персональных данных. Как оно вышло излагаем ниже.


Читать: https://habr.com/ru/post/703732/
Django + Wagtail: The Perfect Combination for Your Next Web Project

Are you a Django developer looking for a content management system (CMS) to use on your next web project? Look no further than Wagtail.
Wagtail is a CMS built on top of Django. It leverages the power and flexibility of Django, while providing an intu...

Read: https://sammy-code.com/django-wagtail-the-perfect-combination-for-your-next-web-project
How to add custom column in the Django Admin change list view?

Note: If you want to read the blog series on Django Admin customization, then click here.

Suppose you have a Book model which has an author field as given below.
# app_name/models.py

class Book(models.Model):
...
author = models.ForeignKey(...

Read: https://blog.devjunction.in/how-to-add-custom-column-in-the-django-admin-change-list-view
Django Berry BS5 - Free PyPi Library

Hello coders!
This article presents Django Admin Berry, the PyPi integration of this iconic design for Django. The latest stable version is provided by Berry maintainers, including Dark Mode, widgets, charts, and authentication pages. The product can...

Read: https://app-generator.hashnode.dev/django-berry-bs5-free-pypi-library
How to make fields to be read only fields in the Django model admin forms?

Note: If you want to read the blog series on Django Admin customization, then click here.

Suppose you have a Book model which has an is_active field as given below.
# app_name/models.py

class Book(models.Model):
...
is_active = models.Boole...

Read: https://blog.devjunction.in/how-to-make-fields-to-be-read-only-fields-in-the-django-model-admin-forms
How to Dockerize Django Project in 2 minutes

To run a Django project in Docker, you will need to have Docker installed on your system. You can then create a Dockerfile for your Django project that specifies the necessary dependencies and commands for running the project.
Here is an example of a...

Read: https://giasuddin90.hashnode.dev/how-to-dockerize-django-project-in-2-minutes
Don't forget django application deployment best practice

Deploying a Python Django application can be a daunting task for even the most experienced developers. With so many potential pitfalls and best practices to consider, it's important to approach the process with a clear understanding of what needs to ...

Read: https://giasuddin90.hashnode.dev/dont-forget-django-application-deployment-best-practice
How to change the input widget into a textfield in Django Model Admin form?

Note: If you want to read the blog series on Django Admin customization, then click here.

Suppose you have a Book model which has a description field as given below.
# app_name/models.py

class Book(models.Model):
...
description = models.Ch...

Read: https://blog.devjunction.in/how-to-change-the-input-widget-into-a-textfield-in-django-model-admin-form
👍1
How to enable CORS on the Django REST Framework

When we develop rest API and want to consume from different website we have to enable cors.
In this tutorial, i will show you how to enable cors
Install package
pip install Django-cors-headers and then add it to your installed apps:
INSTALLED_APPS = ...

Read: https://giasuddin90.hashnode.dev/how-to-enable-cors-on-the-django-rest-framework
👍1
Deploy Django App over Ubuntu VPS with Gunicorn + Nginix + PostgreSQL

In this tutorial, we will deploy a Django app over Ubuntu VPS with Gunicorn + Nginix. We are going to use Vultr VPS for this tutorial. You can use any other VPS provider as well.
1. Create a new user

adduser yourusername

usermod -aG sudo youruserna...

Read: https://selftaughtdev.me/deploy-django-app-over-ubuntu-vps-with-gunicorn-nginix-postgresql
Differentiate Django and Laravel

Basic for ComparisonDjangoLaravelDefinitionA full-stack web toolkit is Django.A full stack web framework is Laravel.PlatformIt is cross-platform compatible.It is cross-platform compatible.MaintenanceDjango is backed by the Django Software Foundation....

Read: https://offpage.hashnode.dev/differentiate-django-and-laravel
How to customize the Queryset in the Django admin change list view?

Note: If you want to read the blog series on Django Admin customization, then click here.

Suppose you have a Book model as given below.
# app_name/models.py

class Book(models.Model):
...
title = models.CharField(max_length=150)
is_activ...

Read: https://blog.devjunction.in/how-to-customize-the-queryset-in-the-django-admin-change-list-view
👍1