How to Use Subquery() in Django With Practical Examples
In the realm of web development, Django stands as a powerful and versatile framework for building robust applications. One of the key aspects of developing efficient and optimized web applications is handling database queries effectively. In this article, we will delve into the world of subqueries in Django, exploring their significance, practical examples of their usage, and a comparison between …
Read: https://djangocentral.com/how-to-use-subquery-in-django/
In the realm of web development, Django stands as a powerful and versatile framework for building robust applications. One of the key aspects of developing efficient and optimized web applications is handling database queries effectively. In this article, we will delve into the world of subqueries in Django, exploring their significance, practical examples of their usage, and a comparison between …
Read: https://djangocentral.com/how-to-use-subquery-in-django/
Djangocentral
How to Use Subquery() in Django With Practical Examples
In the realm of web development, Django stands as a powerful and versatile framework for building robust applications. One of the key aspects of developing e
Getting Started with PostgreSQL: Essential psql Command Line Skills for Beginners
Last month I upgraded to Ubuntu 22.04 LTS. After upgrading, I faced some issues with pgadmin 4 interacting with Postgresql. For this reason, I have to do all the tasks using psql interactive shell. Here I will list out some basic PSQL commands that I...
Read: https://backendbyte.com/getting-started-with-postgresql-essential-psql-command-line-skills-for-beginners
Last month I upgraded to Ubuntu 22.04 LTS. After upgrading, I faced some issues with pgadmin 4 interacting with Postgresql. For this reason, I have to do all the tasks using psql interactive shell. Here I will list out some basic PSQL commands that I...
Read: https://backendbyte.com/getting-started-with-postgresql-essential-psql-command-line-skills-for-beginners
Seamless Deployment of Django: Unlocking Efficiency with Gunicorn, Nginx, PostgreSQL, and Ubuntu - Part 1
Recently, I deployed a full-stack Django application on a Ubuntu server.
During the deployment process, I faced some issues in configuring everything on a production-ready server, mostly in configuring NGINX. I encountered the common error ‘502 Bad G...
Read: https://backendbyte.com/seamless-deployment-of-django-unlocking-efficiency-with-gunicorn-nginx-postgresql-and-ubuntu-part-1
Recently, I deployed a full-stack Django application on a Ubuntu server.
During the deployment process, I faced some issues in configuring everything on a production-ready server, mostly in configuring NGINX. I encountered the common error ‘502 Bad G...
Read: https://backendbyte.com/seamless-deployment-of-django-unlocking-efficiency-with-gunicorn-nginx-postgresql-and-ubuntu-part-1
Enhancing Web Applications with Efficient File Handling and Secure Uploads in Django
As technology continues to shape our online experiences, web applications have become integral tools for businesses and individuals alike. From social media to e-commerce platforms, these applications handle a vast array of data, including text, imag...
Read: https://davidsedoc.hashnode.dev/enhancing-web-applications-with-efficient-file-handling-and-secure-uploads-in-django
As technology continues to shape our online experiences, web applications have become integral tools for businesses and individuals alike. From social media to e-commerce platforms, these applications handle a vast array of data, including text, imag...
Read: https://davidsedoc.hashnode.dev/enhancing-web-applications-with-efficient-file-handling-and-secure-uploads-in-django
👍1👎1
How to Create User Sign up Form and Send Email Verification in Django
Sending emails to users is an important feature that should be implemented in Django your application, especially an application that involves users signing up with their email address. Sending emails can be useful in a Django application for various...
Read: https://delighto.hashnode.dev/send-email-verification-custom-user-model-django
Sending emails to users is an important feature that should be implemented in Django your application, especially an application that involves users signing up with their email address. Sending emails can be useful in a Django application for various...
Read: https://delighto.hashnode.dev/send-email-verification-custom-user-model-django
How to Send Email with Verification Link in Django
Sending emails to users is an important feature that should be implemented in Django your application, especially an application that involves users signing up with their email address. Sending emails can be useful in a Django application for various...
Read: https://delighto.hashnode.dev/send-verification-email-django
Sending emails to users is an important feature that should be implemented in Django your application, especially an application that involves users signing up with their email address. Sending emails can be useful in a Django application for various...
Read: https://delighto.hashnode.dev/send-verification-email-django
How to Build an API using Django REST Framework with Ease #1
This article is part of a series tha is focused on helping beginners master the Django Rest framework and become efficient at writing REST APIs.
Introduction
An application programming interface (API) is a set of requirements, protocols, and resourc...
Read: https://titobzzz.hashnode.dev/how-to-build-an-api-using-django-rest-framework-with-ease-1
This article is part of a series tha is focused on helping beginners master the Django Rest framework and become efficient at writing REST APIs.
Introduction
An application programming interface (API) is a set of requirements, protocols, and resourc...
Read: https://titobzzz.hashnode.dev/how-to-build-an-api-using-django-rest-framework-with-ease-1
👍2
How to Create Python Virtual Environments on Ubuntu or any Linux distribution
What is a virtual environment in Python?
A virtual environment in Python is an isolated workspace specifically for the language. Packages installed within this environment do not interfere with globally installed Python packages, ensuring a clean sep...
Read: https://faizanalam.hashnode.dev/how-to-create-python-virtual-environments-on-ubuntu-or-any-linux-distribution
What is a virtual environment in Python?
A virtual environment in Python is an isolated workspace specifically for the language. Packages installed within this environment do not interfere with globally installed Python packages, ensuring a clean sep...
Read: https://faizanalam.hashnode.dev/how-to-create-python-virtual-environments-on-ubuntu-or-any-linux-distribution
👍1
Django : Class Based Views vs Function Based Views
Django offers two types of views: function-based views (FBVs) and class-based views (CBVs). Initially, Django only had FBVs, but later CBVs were introduced to simplify repetitive coding.
CBVs are essentially Python classes that can be extended and re...
Read: https://sifu.hashnode.dev/django-class-based-views-vs-function-based-views
Django offers two types of views: function-based views (FBVs) and class-based views (CBVs). Initially, Django only had FBVs, but later CBVs were introduced to simplify repetitive coding.
CBVs are essentially Python classes that can be extended and re...
Read: https://sifu.hashnode.dev/django-class-based-views-vs-function-based-views
👍1
10 Killer Automated Python Scripts
Repeating tasks are always time-consuming and boring. Imagine cutting 100 photos one by one or doing tasks such as Fetching APIs, correcting spelling and grammar, etc., all of which take a lot of time. Why not automate them? In today’s article, I wil...
Read: https://sifu.hashnode.dev/10-killer-automated-python-scripts
Repeating tasks are always time-consuming and boring. Imagine cutting 100 photos one by one or doing tasks such as Fetching APIs, correcting spelling and grammar, etc., all of which take a lot of time. Why not automate them? In today’s article, I wil...
Read: https://sifu.hashnode.dev/10-killer-automated-python-scripts
Dockerizing a Django application with Postgres and Pipenv support
I will walk you through setting up Docker for your applications :). First let us talk about the technologies in the title.
All the stacks...
Ik'zo :fire
Docker
In these evil days, it is imperative for developers to shift their focus to business logic...
Read: https://blog.lordsarcastic.dev/dockerizing-a-django-application-with-postgres-and-pipenv-support
I will walk you through setting up Docker for your applications :). First let us talk about the technologies in the title.
All the stacks...
Ik'zo :fire
Docker
In these evil days, it is imperative for developers to shift their focus to business logic...
Read: https://blog.lordsarcastic.dev/dockerizing-a-django-application-with-postgres-and-pipenv-support
What is the difference between the Django and Django REST frameworks?
Django and Django REST framework are both frameworks for web development in Python, but they serve different purposes and have distinct features.
Django: Django is a high-level web framework that simplifies and streamlines the process of building we...
Read: https://bindu.hashnode.dev/what-is-the-difference-between-the-django-and-django-rest-frameworks
Django and Django REST framework are both frameworks for web development in Python, but they serve different purposes and have distinct features.
Django: Django is a high-level web framework that simplifies and streamlines the process of building we...
Read: https://bindu.hashnode.dev/what-is-the-difference-between-the-django-and-django-rest-frameworks
👍2😁1
🚀📅 Day 17 DevOps Challenge -🔮 Enchanted Django To-Do: AWS EC2 & Docker Magic for DevOps 🐍🐳
🐳 Dockerfile Magic: Crafting Containers with Ease! 🛠️
Hey, tech enthusiasts! 👋 If you've ever wondered how applications effortlessly glide across different environments, say hello to Docker – the sorcerer behind the scenes making this enchantment ...
Read: https://adarshdevops.hashnode.dev/day-17-devops-challenge-enchanted-django-to-do-aws-ec2-docker-magic-for-devops
🐳 Dockerfile Magic: Crafting Containers with Ease! 🛠️
Hey, tech enthusiasts! 👋 If you've ever wondered how applications effortlessly glide across different environments, say hello to Docker – the sorcerer behind the scenes making this enchantment ...
Read: https://adarshdevops.hashnode.dev/day-17-devops-challenge-enchanted-django-to-do-aws-ec2-docker-magic-for-devops
Django complete setup
Django is a high-level Python web framework and is also open-source. Starting with the Django framework for web development is the most effective way to build a web app instead of creating it from scratch. And also it promotes clean, reusable code by...
Read: https://codeeasy.hashnode.dev/django-complete-setup
Django is a high-level Python web framework and is also open-source. Starting with the Django framework for web development is the most effective way to build a web app instead of creating it from scratch. And also it promotes clean, reusable code by...
Read: https://codeeasy.hashnode.dev/django-complete-setup
Day-23 : Jenkins Freestyle Project for DevOps Engineers
In the previous blog, I explained what CI/CD is. Here’s the link to my blog: CI/CD. If you haven’t already installed Jenkins on your server, here are the steps to Install Jenkins on your system.
1. 🏗️ What is a Build Job?
A build job in Jenkins is a...
Read: https://muditm12.hashnode.dev/day-23-jenkins-freestyle-project-for-devops-engineers
In the previous blog, I explained what CI/CD is. Here’s the link to my blog: CI/CD. If you haven’t already installed Jenkins on your server, here are the steps to Install Jenkins on your system.
1. 🏗️ What is a Build Job?
A build job in Jenkins is a...
Read: https://muditm12.hashnode.dev/day-23-jenkins-freestyle-project-for-devops-engineers
👍1
DJANGO: The Blueprint for Deadline-Driven Perfectionists
Amidst the multitude of programming languages, there's one that has held my fascination for quite a while: Python. I recall my initial encounter with Python, and my immediate thought was, "Why would anyone name a programming language after a snake un...
Read: https://elijahsamson.hashnode.dev/django-the-blueprint-for-deadline-driven-perfectionists
Amidst the multitude of programming languages, there's one that has held my fascination for quite a while: Python. I recall my initial encounter with Python, and my immediate thought was, "Why would anyone name a programming language after a snake un...
Read: https://elijahsamson.hashnode.dev/django-the-blueprint-for-deadline-driven-perfectionists
👍1
Что нам несет Python 3.12
Переписали виртуальную машину на новый DSL
И теперь ее гораздо проще менять, оптимизировать и проводить эксперименты.
В качестве примера, можно посмотреть на попытку добавления register-based интерпретатора. Другой пример, что часто два опкода идут вместе и выполняются последовательно большую часть времени. Например,
Еще один пример: опкод
Читать: https://habr.com/ru/articles/717420/
Переписали виртуальную машину на новый DSL
И теперь ее гораздо проще менять, оптимизировать и проводить эксперименты.
В качестве примера, можно посмотреть на попытку добавления register-based интерпретатора. Другой пример, что часто два опкода идут вместе и выполняются последовательно большую часть времени. Например,
LOAD_CONST
и RETURN_VALUE
. Для оптимизации, можно добавить новый опкод этой операции. Вместо двух действий он будет выполнять одно. На частых задачах получится неплохая прибавка к производительности. Еще один пример: опкод
CALL_FUNCTION.
Сам по себе довольно медленный. У него есть целая семья оптимизаций, например специализация CALL_FUNCTION_ISINSTANCE
, когда мы выкидываем промежуточный слой и сразу вызываем C-реализацию isinstance
. Минус в том, что Python богатый и динамически типизированный язык. В runtime может что-то поменяться и мы получим замедление — придется сваливаться обратно на общий путь опкода CALL_FUNCTION
.Читать: https://habr.com/ru/articles/717420/
Пакет для импорта данных в Django
Привет всем, хочу рассказать, что у меня получилось, когда я понял, что нам нужен пакет импорта произвольных данных из админки.
Читать: https://habr.com/ru/articles/718122/
Привет всем, хочу рассказать, что у меня получилось, когда я понял, что нам нужен пакет импорта произвольных данных из админки.
Читать: https://habr.com/ru/articles/718122/
Как изучать язык Python для веб-разработки в 2023 году. Общие ориентиры
Привет, Хабр! Меня зовут Тимофей, я Python Engineer с опытом в 3+ года.
Я бы не назвал данную статью полноценным роадмэпом в том понимании, в котором это слово обычно используют. В статье нет сроков изучения, отсутствует подробный план, затрагивающей все темы и подтемы. Да и зачем нужен еще один роадмэп «под копирку», когда в сети и так хватает качественных предложений.
Скорее, я хотел бы составить абстрактный план обучения, который сможет задать общий ориентир, а также будет коррелировать с роадмэпом вроде roadmap.sh. Кроме этого, я смогу дать несколько полезных советов из своего опыта, а также составлю списки полезных ресурсов для изучения языка, сопутствующих инструментов и технологий, которые в свое время помогли или же помогают мне самому.
Читать: https://habr.com/ru/articles/718376/
Привет, Хабр! Меня зовут Тимофей, я Python Engineer с опытом в 3+ года.
Я бы не назвал данную статью полноценным роадмэпом в том понимании, в котором это слово обычно используют. В статье нет сроков изучения, отсутствует подробный план, затрагивающей все темы и подтемы. Да и зачем нужен еще один роадмэп «под копирку», когда в сети и так хватает качественных предложений.
Скорее, я хотел бы составить абстрактный план обучения, который сможет задать общий ориентир, а также будет коррелировать с роадмэпом вроде roadmap.sh. Кроме этого, я смогу дать несколько полезных советов из своего опыта, а также составлю списки полезных ресурсов для изучения языка, сопутствующих инструментов и технологий, которые в свое время помогли или же помогают мне самому.
Читать: https://habr.com/ru/articles/718376/
Пишем сервис для сокращения ссылок на Django, DRF
В этой статье мы напишем сервис для сокращения ссылок на Django, DRF.
Итак, на днях я получил тестовое задание от потенциального работодателя и решил убить двух зайцев сразу: выполнить тестовое задание и написать статью, в которой подробно описать весь процесс.
Итак, что мы имеем.
Читать: https://habr.com/ru/articles/718800/
В этой статье мы напишем сервис для сокращения ссылок на Django, DRF.
Итак, на днях я получил тестовое задание от потенциального работодателя и решил убить двух зайцев сразу: выполнить тестовое задание и написать статью, в которой подробно описать весь процесс.
Итак, что мы имеем.
Читать: https://habr.com/ru/articles/718800/