Асинхронность в питоне — это хайп, не стоит отказываться от блокирующего кода
Здравствуйте, читатели хабра! Читайте в этой статье - развенчание мифов об асинхронном программировании в Python! Действительно ли асинхронная модель - более производительная? И как обстоят дела с драйверами баз данных?
На картинке - скриншот бенчмарков от авторов драйвера asyncpg. Как Вы можете догадаться, автор этой статьи с ними не согласен.
Некоторые читатели знают из моих предыдущих статей о моих (вполне успешных!) попытках сделать асинхронную версию django. Я решил прекратить работу над ней - столько труда напрасно! Читайте - и не делайте так.
Стандарту WSGI 19 лет (c хвостиком). Выясняем, есть ли ещё куда развиваться приложениям с блокирующим вводом-выводом в 2022.
Читать
Читать: https://habr.com/ru/post/703422/
Здравствуйте, читатели хабра! Читайте в этой статье - развенчание мифов об асинхронном программировании в Python! Действительно ли асинхронная модель - более производительная? И как обстоят дела с драйверами баз данных?
На картинке - скриншот бенчмарков от авторов драйвера asyncpg. Как Вы можете догадаться, автор этой статьи с ними не согласен.
Некоторые читатели знают из моих предыдущих статей о моих (вполне успешных!) попытках сделать асинхронную версию django. Я решил прекратить работу над ней - столько труда напрасно! Читайте - и не делайте так.
Стандарту WSGI 19 лет (c хвостиком). Выясняем, есть ли ещё куда развиваться приложениям с блокирующим вводом-выводом в 2022.
Читать
Читать: https://habr.com/ru/post/703422/
Django bugfix release: 4.1.4
Today we've issued the 4.1.4 bugfix release.
The release package and checksums are available from our downloads page, as well as from the Python Package Index. The PGP key ID used for this release is Carlton Gibson: E17DF5C82B4F9D00.
Read: https://www.djangoproject.com/weblog/2022/dec/06/bugfix-release/
Today we've issued the 4.1.4 bugfix release.
The release package and checksums are available from our downloads page, as well as from the Python Package Index. The PGP key ID used for this release is Carlton Gibson: E17DF5C82B4F9D00.
Read: https://www.djangoproject.com/weblog/2022/dec/06/bugfix-release/
DjangoCon US and Europe 2022 Talks Available Online
The organizers of DjangoCon US and DjangoCon Europe spend a tremendous amount of energy both hosting the conferences and putting all the talks online after. The complete playlists of talks from each conference are now available on YouTube:
* DjangoCon Europe 2022
* DjangoCon US 2022
Read: https://www.djangoproject.com/weblog/2022/dec/06/djangocon-us-and-europe-2022-talks-available-onlin/
The organizers of DjangoCon US and DjangoCon Europe spend a tremendous amount of energy both hosting the conferences and putting all the talks online after. The complete playlists of talks from each conference are now available on YouTube:
* DjangoCon Europe 2022
* DjangoCon US 2022
Read: https://www.djangoproject.com/weblog/2022/dec/06/djangocon-us-and-europe-2022-talks-available-onlin/
👍1
How to add WYSIWYG (What You See Is What You Get) editor to Django Project?
WYSIWYG aka What You See Is What You Get is a very useful for the content rich websites, and by default Django Admin comes with a simple HTML text field. In this blog, we’ll add a Rich Text Editor (WYSIWYG) to our Django project.
We’ll use one of the...
Read: https://blog.devjunction.in/how-to-add-wysiwyg-what-you-see-is-what-you-get-editor-to-django-project
WYSIWYG aka What You See Is What You Get is a very useful for the content rich websites, and by default Django Admin comes with a simple HTML text field. In this blog, we’ll add a Rich Text Editor (WYSIWYG) to our Django project.
We’ll use one of the...
Read: https://blog.devjunction.in/how-to-add-wysiwyg-what-you-see-is-what-you-get-editor-to-django-project
👍1
Know about Models in Django
Introduction to Django models
In the process of learning Django, you surely will come across Django models. It is an important component of any Django application. Having good knowledge is essential to create an efficient web application using Django...
Read: https://rishabhdev.hashnode.dev/know-about-models-in-django
Introduction to Django models
In the process of learning Django, you surely will come across Django models. It is an important component of any Django application. Having good knowledge is essential to create an efficient web application using Django...
Read: https://rishabhdev.hashnode.dev/know-about-models-in-django
Know about Models in Django
Introduction to Django models
In the process of learning Django, you surely will come across Django models. It is an important component of any Django application. Having good knowledge is essential to create an efficient web application using Django...
Read: https://fuzzydevs.hashnode.dev/know-about-models-in-django
Introduction to Django models
In the process of learning Django, you surely will come across Django models. It is an important component of any Django application. Having good knowledge is essential to create an efficient web application using Django...
Read: https://fuzzydevs.hashnode.dev/know-about-models-in-django
All you need to about Django Caching-redis-cache
Application performance tuning and decreasing the load time of a web application is very important for successful products. Redis, a versatile tool, is an open-source, in-memory data structure store, used as a database, cache, and message broker. In ...
Read: https://giasuddin90.hashnode.dev/all-you-need-to-about-django-caching-redis-cache
Application performance tuning and decreasing the load time of a web application is very important for successful products. Redis, a versatile tool, is an open-source, in-memory data structure store, used as a database, cache, and message broker. In ...
Read: https://giasuddin90.hashnode.dev/all-you-need-to-about-django-caching-redis-cache
Migrating my apps from Heroku to Railway
Heroku is slowly closing all its free services from 28th November. My free deployments were also removed. So, let's migrate them from Heroku.
What is Heroku?
Heroku is one of the most popular cloud PaaS (Platform as a Service) platforms. If you are a...
Read: https://blog.musfiqdehan.me/migrating-my-apps-from-heroku-to-railway
Heroku is slowly closing all its free services from 28th November. My free deployments were also removed. So, let's migrate them from Heroku.
What is Heroku?
Heroku is one of the most popular cloud PaaS (Platform as a Service) platforms. If you are a...
Read: https://blog.musfiqdehan.me/migrating-my-apps-from-heroku-to-railway
Implementing a MultiTenant Database Architecture with Django
Multitenancy is an architecture in which a single instance of software runs on a server and serves multiple tenants. A tenant, in this case, is a group of users who share common access with specific privileges to the software instance. A lot of moder...
Read: https://untitled.hashnode.dev/implementing-a-multitenant-database-architecture-with-django
Multitenancy is an architecture in which a single instance of software runs on a server and serves multiple tenants. A tenant, in this case, is a group of users who share common access with specific privileges to the software instance. A lot of moder...
Read: https://untitled.hashnode.dev/implementing-a-multitenant-database-architecture-with-django
Build a Todo API backend using Generic class-based views in Django Rest Framework
Introduction
We will build a to-do API backend using Django Rest Framework. We will be able to create, read, update and delete to-dos.
Set up
Create a new folder and open it with your code editor
Run the following command on your terminal to create...
Read: https://emmakodes.com/build-a-todo-api-backend-using-generic-class-based-views-in-django-rest-framework
Introduction
We will build a to-do API backend using Django Rest Framework. We will be able to create, read, update and delete to-dos.
Set up
Create a new folder and open it with your code editor
Run the following command on your terminal to create...
Read: https://emmakodes.com/build-a-todo-api-backend-using-generic-class-based-views-in-django-rest-framework
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
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
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
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
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/
Привет. Сегодня хочу рассказать про то, как за кулисами устроена работа моего мини-проекта по ведению задач 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
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
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
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
Сделай сам: МИС на коленке и в облаке
Решение в облаке — фактически стандарт. Делаешь сервис по доставке воды, еды, и т.д. - делай
Браузер как клиент — фактически стандарт. И не важно, что там сервер отдает: MPA, SPA, PWA, главное чтобы работало. Работало в смысле cashflow, а не просто: "красиво тут".
Но, как известно, всегда "есть один нюанс". Есть данные, чувствительные к сетевой передаче. Конфиденциальные, персональные, секретные наконец. Где храниться, как передаются, где обрабатываются — важные "нюансы". Храните персональные данные в облаке? тогда, "мы к вам уже пришли". Впрочем, если и не так серьезно, всегда найдется повод сказать: "Я этим XENам как-то не доверяю".
Делали мы тут крошечную медицинскую ИС (МИС) у себя, аккурат с нюансами передачи по сети персональных данных. Как оно вышло излагаем ниже.
Читать: https://habr.com/ru/post/703732/
Решение в облаке — фактически стандарт. Делаешь сервис по доставке воды, еды, и т.д. - делай
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
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
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