Асинхронный django, status update. Проект vinyl
Всем привет.
Некоторое время назад я писал про альтернативные возможности, как можно добавить в django асинхронность (есть официальный подход, изложенный в DEP-09). С тех пор у меня получилось оформить свои идеи в нечто относительно цельное, что вылилось в vinyl project. Описание проекта читайте на гитхабе, здесь же я хочу рассказать о его интересных особенностях.
Проект родился после нескольких предыдущих попыток, когда я узнал, что django, в действительности, очень неплохо расширяем. Например, он поддерживает использование нескольких баз данных одновременно (притом что модели одни и те же). Соответственно, например, ничего не мешает считать использование асинхронного драйвера как использование другой логической базы данных - чем я и воспользовался.
В итоге, получилось поместить всю асинхронную функциональность внутрь менеджера моделей. Не понадобилось делать форк django или его частей.
Вначале - небольшое демо того, что получилось. Для тестирования я использовал асинхронный драйвер psycopg3 (если что, вот ссылка на database backend).
Демо
Читать: https://habr.com/ru/post/660831/
Всем привет.
Некоторое время назад я писал про альтернативные возможности, как можно добавить в django асинхронность (есть официальный подход, изложенный в DEP-09). С тех пор у меня получилось оформить свои идеи в нечто относительно цельное, что вылилось в vinyl project. Описание проекта читайте на гитхабе, здесь же я хочу рассказать о его интересных особенностях.
Проект родился после нескольких предыдущих попыток, когда я узнал, что django, в действительности, очень неплохо расширяем. Например, он поддерживает использование нескольких баз данных одновременно (притом что модели одни и те же). Соответственно, например, ничего не мешает считать использование асинхронного драйвера как использование другой логической базы данных - чем я и воспользовался.
В итоге, получилось поместить всю асинхронную функциональность внутрь менеджера моделей. Не понадобилось делать форк django или его частей.
Вначале - небольшое демо того, что получилось. Для тестирования я использовал асинхронный драйвер psycopg3 (если что, вот ссылка на database backend).
Демо
Читать: https://habr.com/ru/post/660831/
👍1
История одного CRUD'а
В 2015 году, когда я пришёл на своё текущее место работы, мне было непривычно от необыкновенной свободы действий. Буквально, на новом месте можно было проявить весь творческий потенциал как DevOps-евангелиста. Мне нравилось выстраивать процессы, автоматизировать рутину, делать разработку удобной. Больше всего я люблю оптимизации, а больше всего ненавижу - рутину.
Эта история одной боли и попытке не просто "принять обезболивающее", а реально излечить её. Поэтому готовьтесь переварить лонгрид.
Читать это всё...
Читать: https://habr.com/ru/post/660847/
В 2015 году, когда я пришёл на своё текущее место работы, мне было непривычно от необыкновенной свободы действий. Буквально, на новом месте можно было проявить весь творческий потенциал как DevOps-евангелиста. Мне нравилось выстраивать процессы, автоматизировать рутину, делать разработку удобной. Больше всего я люблю оптимизации, а больше всего ненавижу - рутину.
Эта история одной боли и попытке не просто "принять обезболивающее", а реально излечить её. Поэтому готовьтесь переварить лонгрид.
Читать это всё...
Читать: https://habr.com/ru/post/660847/
👍1
Django News - Django 4.0.4, 3.2.13, and 2.2.28 security releases - Apr 15th 2022
Read: https://django-news.com/issues/123
Read: https://django-news.com/issues/123
Django News - Django 4.0.4, 3.2.13, and 2.2.28 security releases - Apr 15th 2022
Read: https://django-news.com/issues/123
Read: https://django-news.com/issues/123
Masonite Project - Python Web Framework Installation
In this series of posts, I want to present a Python web framework that I found and I believe it makes sense to see how it handles things. The very interesting thing for me is that it brings Laravel (php web framework) goods to Python world.
According...
Read: https://blog.popolo.dev/masonite-project-python-web-framework-installation
In this series of posts, I want to present a Python web framework that I found and I believe it makes sense to see how it handles things. The very interesting thing for me is that it brings Laravel (php web framework) goods to Python world.
According...
Read: https://blog.popolo.dev/masonite-project-python-web-framework-installation
Masonite Project - Install TailwindCSS
By default, Masonite is coming with TailwindCSS from CDN.
We can find this in base.html that is located in templates folder. This is the base template that we can use it to extend to further pages.
For the authentication pages, the relevant base.htm...
Read: https://blog.popolo.dev/masonite-project-install-tailwindcss
By default, Masonite is coming with TailwindCSS from CDN.
We can find this in base.html that is located in templates folder. This is the base template that we can use it to extend to further pages.
For the authentication pages, the relevant base.htm...
Read: https://blog.popolo.dev/masonite-project-install-tailwindcss
How I Integrated Zapier into my Django Project
Read: http://djangotricks.blogspot.com/2022/04/how-i-integrated-zapier-into-my-django-project.html
Read: http://djangotricks.blogspot.com/2022/04/how-i-integrated-zapier-into-my-django-project.html
what is FLASK ?
Flask :
Flask is a web application framework written in Python. Flask is based on the Werkzeug WSGI toolkit and Jinja2 temolate engine. Both are Pocco projects.
Modules :
There are many modules or frameworks which allow building your webpage using ...
Read: https://maharshisinha.hashnode.dev/what-is-flask
Flask :
Flask is a web application framework written in Python. Flask is based on the Werkzeug WSGI toolkit and Jinja2 temolate engine. Both are Pocco projects.
Modules :
There are many modules or frameworks which allow building your webpage using ...
Read: https://maharshisinha.hashnode.dev/what-is-flask
How to start building a web application using Django (first steps)?
Today we are going to learn the fundamentals to get ready with your first Django project.
By the end of this tutorial you'll be able to set the basic configuration for a Django web app, this includes:
Django installation
Django project configuration...
Read: https://carlosenriquesalas.hashnode.dev/how-to-start-building-a-web-application-using-django-first-steps
Today we are going to learn the fundamentals to get ready with your first Django project.
By the end of this tutorial you'll be able to set the basic configuration for a Django web app, this includes:
Django installation
Django project configuration...
Read: https://carlosenriquesalas.hashnode.dev/how-to-start-building-a-web-application-using-django-first-steps
👍3👎1
Creating an Website or Webapp in Django Web Framework
Preface
This Post Will Be Part of Hashnode's Writeathon and also part of My Django Related Posts.
So there are many ways to write Back-end for an Web App or Website but we can also write an Web App with Python 3 Programming Language and Django Is One...
Read: https://shriekdj.hashnode.dev/creating-an-website-or-webapp-in-django-web-framework
Preface
This Post Will Be Part of Hashnode's Writeathon and also part of My Django Related Posts.
So there are many ways to write Back-end for an Web App or Website but we can also write an Web App with Python 3 Programming Language and Django Is One...
Read: https://shriekdj.hashnode.dev/creating-an-website-or-webapp-in-django-web-framework
Flask vs Django: Which Python framework is right for you?
As a new developer, you’re probably aware that many tools are available to support Python development. Sometimes it can be confusing to know where to begin. Today, we’ll compare and contrast two of the most popular Python web frameworks: Flask and Dj...
Read: https://educativeio.hashnode.dev/flask-vs-django-which-python-framework-is-right-for-you
As a new developer, you’re probably aware that many tools are available to support Python development. Sometimes it can be confusing to know where to begin. Today, we’ll compare and contrast two of the most popular Python web frameworks: Flask and Dj...
Read: https://educativeio.hashnode.dev/flask-vs-django-which-python-framework-is-right-for-you
How to start building a web application using Django?
Today we are going to learn the fundamentals to get ready with your first Django project.
By the end of this tutorial you'll be able to set the basic configuration for a Django web app, this includes:
Django installation
Django project configuration...
Read: https://carlosenriquesalas.hashnode.dev/how-to-start-building-a-web-application-using-django
Today we are going to learn the fundamentals to get ready with your first Django project.
By the end of this tutorial you'll be able to set the basic configuration for a Django web app, this includes:
Django installation
Django project configuration...
Read: https://carlosenriquesalas.hashnode.dev/how-to-start-building-a-web-application-using-django
👍1
Flask vs Django: Which Python framework is right for you?
What are web frameworks?
Like other major programming languages, Python employs software platforms unique to it called web frameworks. Web frameworks act as the premade skeleton of a website because developers, both front-end and back-end, do not wan...
Read: https://rahul7171.hashnode.dev/flask-vs-django-which-python-framework-is-right-for-you
What are web frameworks?
Like other major programming languages, Python employs software platforms unique to it called web frameworks. Web frameworks act as the premade skeleton of a website because developers, both front-end and back-end, do not wan...
Read: https://rahul7171.hashnode.dev/flask-vs-django-which-python-framework-is-right-for-you
Introducing Myself
Hey There! Welcome to my blog. My name is Tosin, a student in the Department of Computer Science at the University of Lagos, Nigeria, and someone who is passionate about technology.
How I started
My journey with technology started a lot of time ago....
Read: https://tosin1.hashnode.dev/introducing-myself
Hey There! Welcome to my blog. My name is Tosin, a student in the Department of Computer Science at the University of Lagos, Nigeria, and someone who is passionate about technology.
How I started
My journey with technology started a lot of time ago....
Read: https://tosin1.hashnode.dev/introducing-myself
Material Kit - Open-Source Django Starter
Hello Coders!
This article presents an open-source Django Starter crafted on top of Material Kit, a really nice Bootstrap 5 design (also free). The product can be downloaded from Github (MIT License) and used for commercial projects or eLearning act...
Read: https://app-generator.hashnode.dev/material-kit-open-source-django-starter
Hello Coders!
This article presents an open-source Django Starter crafted on top of Material Kit, a really nice Bootstrap 5 design (also free). The product can be downloaded from Github (MIT License) and used for commercial projects or eLearning act...
Read: https://app-generator.hashnode.dev/material-kit-open-source-django-starter
👍1
Django News - Integrating Zapier and Django and Django Unicorn 0.45 - Apr 22nd 2022
Read: https://django-news.com/issues/124
Read: https://django-news.com/issues/124
👍1
Парсинг для взрослых или Инфраструктура для промышленного парсинга
В студенческие годы я написал на заказ много парсеров магазинов и социальных сетей. Со временем парсеры усложнялись и из скриптов превращались в полноценные веб-приложения c базой данных и Rest API. В статье описан шаблон веб-приложения, который использую для создания парсеов.
Читать: https://habr.com/ru/post/662928/
В студенческие годы я написал на заказ много парсеров магазинов и социальных сетей. Со временем парсеры усложнялись и из скриптов превращались в полноценные веб-приложения c базой данных и Rest API. В статье описан шаблон веб-приложения, который использую для создания парсеов.
Читать: https://habr.com/ru/post/662928/
👍3
Handle Timezone with Django
A truth for people all around the world is that we experience time differently.
Trying to have the same time in your application for all users will not reflect real-time in their zone and mostly trying to register their different times in your datab...
Read: https://koladev.hashnode.dev/handle-timezone-with-django-cl2fqx37b01rxy8nvbnj5df3z
A truth for people all around the world is that we experience time differently.
Trying to have the same time in your application for all users will not reflect real-time in their zone and mostly trying to register their different times in your datab...
Read: https://koladev.hashnode.dev/handle-timezone-with-django-cl2fqx37b01rxy8nvbnj5df3z
👍1
Django 4.1 adds async-compatible interface to QuerySet
The much-awaited pull request for an async-compatible interface to Queryset just got merged into the main branch of Django.
Pull Request - https://github.com/django/django/pull/14843
The Django core team has been progressively adding async support to the framework. Asynchronous views and middlewares were part of the Django 3.1 release and with the latest changes now Django ORM will be …
Read: http://djangocentral.com/django-adds-async-compatible-interface-to-queryset/
The much-awaited pull request for an async-compatible interface to Queryset just got merged into the main branch of Django.
Pull Request - https://github.com/django/django/pull/14843
The Django core team has been progressively adding async support to the framework. Asynchronous views and middlewares were part of the Django 3.1 release and with the latest changes now Django ORM will be …
Read: http://djangocentral.com/django-adds-async-compatible-interface-to-queryset/
👍4
Electron + Django, desktop app integrate JavaScript & Python
Introduction & Concept
Building a desktop app from Electron and Django is actually building a web application, which uses Electron as the front-end by a local browser and Django as the backend.
Then, why do we need to build the desktop application i...
Read: https://ivanyu2021.hashnode.dev/electron-django-desktop-app-integrate-javascript-and-python
Introduction & Concept
Building a desktop app from Electron and Django is actually building a web application, which uses Electron as the front-end by a local browser and Django as the backend.
Then, why do we need to build the desktop application i...
Read: https://ivanyu2021.hashnode.dev/electron-django-desktop-app-integrate-javascript-and-python