Python, Django и немного защиты кода
Привет, Habr! Компания, в которой я работаю, занимается системами умного дома и видеонаблюдения. Услуга работает по форме SaaS. Но недавно было решено продавать и локальное решение. За основу «коробки» было решено взять облако, немного его переделать и вот готов новый продукт…
С переездом с облачных «рельс» возник ряд вопросов. Один из них в том, что весь проект написан на Python‑ язык интерпретируемый на лету и не защищенный от копирования от слова совсем. Второй момент, что в проекте используется Django. Фреймворк со своими зависимостями, которые еще аукнулись нам в процессе поиска решений. То с чем мы столкнулись и к чему пришли далее в статье.
Читать: https://habr.com/ru/articles/721260/
Привет, Habr! Компания, в которой я работаю, занимается системами умного дома и видеонаблюдения. Услуга работает по форме SaaS. Но недавно было решено продавать и локальное решение. За основу «коробки» было решено взять облако, немного его переделать и вот готов новый продукт…
С переездом с облачных «рельс» возник ряд вопросов. Один из них в том, что весь проект написан на Python‑ язык интерпретируемый на лету и не защищенный от копирования от слова совсем. Второй момент, что в проекте используется Django. Фреймворк со своими зависимостями, которые еще аукнулись нам в процессе поиска решений. То с чем мы столкнулись и к чему пришли далее в статье.
Читать: https://habr.com/ru/articles/721260/
[recovery mode] Разработка Web API на Django с помощью Django REST framework: от создания моделей до тестирования
Django REST framework (DRF) — это мощный и гибкий инструмент для создания Web API на основе Django. Он предоставляет удобные средства для создания RESTful API, поддерживает аутентификацию, авторизацию, сериализацию, валидацию и другие функции.
В этой статье мы рассмотрим, как использовать Django REST framework для создания Web API на базе Django.
Читать: https://habr.com/ru/articles/722054/
Django REST framework (DRF) — это мощный и гибкий инструмент для создания Web API на основе Django. Он предоставляет удобные средства для создания RESTful API, поддерживает аутентификацию, авторизацию, сериализацию, валидацию и другие функции.
В этой статье мы рассмотрим, как использовать Django REST framework для создания Web API на базе Django.
Читать: https://habr.com/ru/articles/722054/
Главное из мира Python за февраль 2023
Раз в месяц мы в Moscow Python Podcast собираемся и обсуждаем новые релизы, PEP, заинтересовавшие нас инструменты и статьи. Под катом — текстовая выжимка из обсуждения.
Читать: https://habr.com/ru/articles/722008/
Раз в месяц мы в Moscow Python Podcast собираемся и обсуждаем новые релизы, PEP, заинтересовавшие нас инструменты и статьи. Под катом — текстовая выжимка из обсуждения.
Читать: https://habr.com/ru/articles/722008/
Python Дайджест: как актуализировать всю кодовую базу с помощью pre-commit
Продолжаю рассказывать, как open source проект Python Дайджест спустя 5 лет без обновлений удалось актуализировать по всему стэку технологий. В первой части рассказал, как удалось outdated проект с Python 3.4 обновить до Python 3.11 и Django 4.1.
В этой части расскажу, как удалось максимально дешево привести кодовую базу в актуальное состояние.
Читать: https://habr.com/ru/companies/first/articles/721732/
Продолжаю рассказывать, как open source проект Python Дайджест спустя 5 лет без обновлений удалось актуализировать по всему стэку технологий. В первой части рассказал, как удалось outdated проект с Python 3.4 обновить до Python 3.11 и Django 4.1.
В этой части расскажу, как удалось максимально дешево привести кодовую базу в актуальное состояние.
Читать: https://habr.com/ru/companies/first/articles/721732/
Django REST. Реализация функционала добавления в «избранное» с возможностью расширения типов добавляемого контента
Допустим у нас есть зарегистрированные пользователи и какая-то модель, например "Компании", которую пользователь может добавлять в избранное. Обычно такая задача решается путем создания третьей таблицы
Читать: https://habr.com/ru/articles/723300/
Допустим у нас есть зарегистрированные пользователи и какая-то модель, например "Компании", которую пользователь может добавлять в избранное. Обычно такая задача решается путем создания третьей таблицы
Favorite
, являющейся связующим звеном, для реализации ManyToManyField связи между пользователем и компаниейЧитать: https://habr.com/ru/articles/723300/
Django DRF Sign-in with Apple
Привет, уважаемый читатель!
Пришла пора внедрить систему аутентификации от Apple в проект на Django DRF, ведь система входа от Google была реализована давно и по идее проблем не должно было возникнуть, но как сказал один известный гном: "Я ещё никогда так не ошибался..." А теперь по порядку.
Читать: https://habr.com/ru/articles/723322/
Привет, уважаемый читатель!
Пришла пора внедрить систему аутентификации от Apple в проект на Django DRF, ведь система входа от Google была реализована давно и по идее проблем не должно было возникнуть, но как сказал один известный гном: "Я ещё никогда так не ошибался..." А теперь по порядку.
Читать: https://habr.com/ru/articles/723322/
[recovery mode] CI/CD GitHub Actions
CI/CD с использованием GitHub Actions (приложение Django)
Читать: https://habr.com/ru/articles/723982/
CI/CD с использованием GitHub Actions (приложение Django)
Читать: https://habr.com/ru/articles/723982/
👍1👎1
Дайджест Python #6: как заказать столик в ресторане через ChatGPT и почему лень — не порок
Собрали дайджест из статей про Python с 16 по 31 марта. Узнайте, как инвестировать при помощи Big Data и как создать голосовой помощник.
Читать: «Дайджест Python #6: как заказать столик в ресторане через ChatGPT и почему лень — не порок»
Собрали дайджест из статей про Python с 16 по 31 марта. Узнайте, как инвестировать при помощи Big Data и как создать голосовой помощник.
Читать: «Дайджест Python #6: как заказать столик в ресторане через ChatGPT и почему лень — не порок»
Tproger
Дайджест Python #6: как заказать столик через ChatGPT
Собрали дайджест из статей про Python с 16 по 31 марта. Узнайте, как инвестировать при помощи Big Data и как создать голосовой помощник.
Using AbstractBaseUser In Django
Introduction
If you are like me, you have probably worked your way through the Django documentation and probably haven’t understood this yet.
Well, I just cracked this huge case, and it was an ordeal.
AbstractBaseUser is a model class in Django, an...
Read: https://shecode3.hashnode.dev/using-abstractbaseuser-in-django
Introduction
If you are like me, you have probably worked your way through the Django documentation and probably haven’t understood this yet.
Well, I just cracked this huge case, and it was an ordeal.
AbstractBaseUser is a model class in Django, an...
Read: https://shecode3.hashnode.dev/using-abstractbaseuser-in-django
Django bugfix release: 4.1.8
Today we've issued the 4.1.8 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 Mariusz Felisiak: 2EF56372BA48CD1B.
Read: https://www.djangoproject.com/weblog/2023/apr/05/bugfix-release/
Today we've issued the 4.1.8 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 Mariusz Felisiak: 2EF56372BA48CD1B.
Read: https://www.djangoproject.com/weblog/2023/apr/05/bugfix-release/
Improve your Django Code with pre-commit
Update (04/01/2023): A kind reddit user by the name of lanemik suggested I give ruff a go. So i decided to add it to the guide.
In the previous tutorial we have finished styling our Authentication pages. Before we go any further I would like to intr...
Read: https://rasulkireev.hashnode.dev/improve-your-django-code-with-pre-commit
Update (04/01/2023): A kind reddit user by the name of lanemik suggested I give ruff a go. So i decided to add it to the guide.
In the previous tutorial we have finished styling our Authentication pages. Before we go any further I would like to intr...
Read: https://rasulkireev.hashnode.dev/improve-your-django-code-with-pre-commit
Five Reasons to use Django: How it Can Improve Your Web Development Projects
In the world of web development, Python has become a popular choice for developers due to its simplicity and ease of use.
Django is a web framework that was created to make web development easier and more efficient. It is an open-source framework tha...
Read: https://devoreur2code.hashnode.dev/five-reasons-to-use-django-how-it-can-improve-your-web-development-projects
In the world of web development, Python has become a popular choice for developers due to its simplicity and ease of use.
Django is a web framework that was created to make web development easier and more efficient. It is an open-source framework tha...
Read: https://devoreur2code.hashnode.dev/five-reasons-to-use-django-how-it-can-improve-your-web-development-projects
How ChatGPT quickly helped me understand Django’s source code
I was reading Django’s source code to design a custom model field. I’ve also read the specific documentation page for it. Then there was a class that I was struggling to understand its role. So I started investigating with ChatGPT.
Here is the absolu...
Read: https://henriquebastos.net/how-chatgpt-quickly-helped-me-understand-djangos-source-code
I was reading Django’s source code to design a custom model field. I’ve also read the specific documentation page for it. Then there was a class that I was struggling to understand its role. So I started investigating with ChatGPT.
Here is the absolu...
Read: https://henriquebastos.net/how-chatgpt-quickly-helped-me-understand-djangos-source-code
👍1
My Tech Journey: A Retrospection
Inspiration
So recently I graduated from college with a bachelor's degree in computer engineering. Currently working as a developer in the Silicon Valley of India Bengaluru and learning the ins and outs of this field.
I Joined Hashnode recently and w...
Read: https://debaghosh.hashnode.dev/my-tech-journey-a-retrospection
Inspiration
So recently I graduated from college with a bachelor's degree in computer engineering. Currently working as a developer in the Silicon Valley of India Bengaluru and learning the ins and outs of this field.
I Joined Hashnode recently and w...
Read: https://debaghosh.hashnode.dev/my-tech-journey-a-retrospection
How to Build a Speech Authentication System with Django and Next JS - Part 1
Learn how to build a speech authentication system with Django in this comprehensive tutorial. With the help of a Python package that converts speech to text, users can enter their details by speaking. The system includes a registration and login page...
Read: https://thecodeway.hashnode.dev/how-to-build-a-speech-authentication-system-with-django-and-next-js-part-1
Learn how to build a speech authentication system with Django in this comprehensive tutorial. With the help of a Python package that converts speech to text, users can enter their details by speaking. The system includes a registration and login page...
Read: https://thecodeway.hashnode.dev/how-to-build-a-speech-authentication-system-with-django-and-next-js-part-1
Generating Django rest framework API Documentation using drf-yasg library
Introduction
In this article, I would be building an application within a School Management System project with Django rest Framework
Our major objective is to create a few endpoints and generate Documentation for the users of our API
What is a Docum...
Read: https://philipodulaja.hashnode.dev/generating-django-rest-framework-api-documentation-using-drf-yasg-library
Introduction
In this article, I would be building an application within a School Management System project with Django rest Framework
Our major objective is to create a few endpoints and generate Documentation for the users of our API
What is a Docum...
Read: https://philipodulaja.hashnode.dev/generating-django-rest-framework-api-documentation-using-drf-yasg-library
👍1
Getting started with Django Rest Framework
Photo by Markus Spiske: https://www.pexels.com/photo/a-laptop-screen-with-text-4439901/
In this article, we'll create a project that posts about rants using Django and Django Rest Framework. We'll use Django's built-in slugify method and override its...
Read: https://vicentereyes.org/getting-started-with-django-rest-framework
Photo by Markus Spiske: https://www.pexels.com/photo/a-laptop-screen-with-text-4439901/
In this article, we'll create a project that posts about rants using Django and Django Rest Framework. We'll use Django's built-in slugify method and override its...
Read: https://vicentereyes.org/getting-started-with-django-rest-framework
👍1
Celery Alternative for Django - Huey
Background
So today I will be talking about a Celery alternative named Huey, which comes with a much easier setup than Celery and is much smaller in size compared to Celery.
The reason why I decided to try out Huey is that I have faced some issues wi...
Read: https://idiomaticprogrammers.hashnode.dev/celery-alternative-for-django-huey
Background
So today I will be talking about a Celery alternative named Huey, which comes with a much easier setup than Celery and is much smaller in size compared to Celery.
The reason why I decided to try out Huey is that I have faced some issues wi...
Read: https://idiomaticprogrammers.hashnode.dev/celery-alternative-for-django-huey
❤1👍1
How to save Base64 encoded image to Django ImageField?
I had to create an API that had to accept an image in Base64 encoded format and save it to Django image field, which requires an image file. So today I learned how to do this.
Step 1: B64 to PIL
The first step will be to convert this B64 image to an ...
Read: https://idiomaticprogrammers.hashnode.dev/how-to-save-base64-encoded-image-to-django-imagefield
I had to create an API that had to accept an image in Base64 encoded format and save it to Django image field, which requires an image file. So today I learned how to do this.
Step 1: B64 to PIL
The first step will be to convert this B64 image to an ...
Read: https://idiomaticprogrammers.hashnode.dev/how-to-save-base64-encoded-image-to-django-imagefield
Интеграция и кастомизация OpenAPI в Django/Django Rest Framework
Рассмотрим способы интеграции OpenAPI схемы в экосистему Django/DRF с помощью библиотеки drf-spectacular, а также некоторые проблемы, возникающие при кастомизации API и, соответственно, их решения.
Читать: https://habr.com/ru/articles/727936/
Рассмотрим способы интеграции OpenAPI схемы в экосистему Django/DRF с помощью библиотеки drf-spectacular, а также некоторые проблемы, возникающие при кастомизации API и, соответственно, их решения.
Читать: https://habr.com/ru/articles/727936/
"Effortless Deployment: Running Django todo Web Applications in Docker Containers"
Why should one use Docker to deploy apps?
Docker works as a container for your apps. You can build apps, containerize them with Docker and run them anywhere. Dockerized apps run on any OS, starting from Windows to Linux. So, you can build your app an...
Read: https://harishgaikwad.hashnode.dev/effortless-deployment-running-django-todo-web-applications-in-docker-containers
Why should one use Docker to deploy apps?
Docker works as a container for your apps. You can build apps, containerize them with Docker and run them anywhere. Dockerized apps run on any OS, starting from Windows to Linux. So, you can build your app an...
Read: https://harishgaikwad.hashnode.dev/effortless-deployment-running-django-todo-web-applications-in-docker-containers