Django Roadmap 2024
Perfect for beginners, it will guide you through building your first web app and mastering core Django concepts. And if you're an experienced developer, this guide is the ultimate resource for refreshing your skills and staying at the forefront of yo...
Read: https://tech.raturi.in/django-roadmap
Perfect for beginners, it will guide you through building your first web app and mastering core Django concepts. And if you're an experienced developer, this guide is the ultimate resource for refreshing your skills and staying at the forefront of yo...
Read: https://tech.raturi.in/django-roadmap
Model-View-Controller (MVC) in Django
Model-View-Controller is a software architectural pattern used to implement a logic between user's interface, data and the controlling flow. It is divided into three parts:
Model: contains the data to be sent or updated.
View: handles layout and di...
Read: https://blur.hashnode.dev/model-view-controller-mvc-in-django
Model-View-Controller is a software architectural pattern used to implement a logic between user's interface, data and the controlling flow. It is divided into three parts:
Model: contains the data to be sent or updated.
View: handles layout and di...
Read: https://blur.hashnode.dev/model-view-controller-mvc-in-django
🔥2
Django security releases issued: 5.0.2, 4.2.10, and 3.2.24
In accordance with our security release policy, the Django team
is issuing Django 5.0.2, Django 4.2.10, and Django 3.2.24.
These releases address the security issue detailed below. We encourage all
users of Django to upgrade as soon as possible.
CVE-2024-24680: Potential denial-of-service in intcomma template filter
The intcomma template filter was subject to a potential denial-of-service
attack when used with very long strings.
Affected supported versions
* Django main branch
* Django 5.0
* Django 4.2
* Django 3.2
Resolution
Patches to resolve the issue have been applied to Django's main branch and the
5.0, 4.2, and 3.2 stable branches. The patches may be obtained from the
following changesets:
* On the main branch
* On the 5.0 release branch
* On the 4.2 release branch
* On the 3.2 release branch
The following releases have been issued:
* Django 5.0.2 (download Django 5.0.2 | 5.0.2 checksums)
* Django 4.2.10 (download Django 4.2.10 | 4.2.10 checksums)
* Django 3.2.24 (download Django 3.2.24 | 3.2.24 checksums)
The PGP key ID used for this release is Natalia Bidart: 2EE82A8D9470983E
General notes regarding security reporting
As always, we ask that potential security issues be reported via private email
to [email protected], and not via Django's Trac instance, nor via
the Django Forum, nor via the django-developers list. Please see our security
policies for further information.
Read: https://www.djangoproject.com/weblog/2024/feb/06/security-releases/
In accordance with our security release policy, the Django team
is issuing Django 5.0.2, Django 4.2.10, and Django 3.2.24.
These releases address the security issue detailed below. We encourage all
users of Django to upgrade as soon as possible.
CVE-2024-24680: Potential denial-of-service in intcomma template filter
The intcomma template filter was subject to a potential denial-of-service
attack when used with very long strings.
Affected supported versions
* Django main branch
* Django 5.0
* Django 4.2
* Django 3.2
Resolution
Patches to resolve the issue have been applied to Django's main branch and the
5.0, 4.2, and 3.2 stable branches. The patches may be obtained from the
following changesets:
* On the main branch
* On the 5.0 release branch
* On the 4.2 release branch
* On the 3.2 release branch
The following releases have been issued:
* Django 5.0.2 (download Django 5.0.2 | 5.0.2 checksums)
* Django 4.2.10 (download Django 4.2.10 | 4.2.10 checksums)
* Django 3.2.24 (download Django 3.2.24 | 3.2.24 checksums)
The PGP key ID used for this release is Natalia Bidart: 2EE82A8D9470983E
General notes regarding security reporting
As always, we ask that potential security issues be reported via private email
to [email protected], and not via Django's Trac instance, nor via
the Django Forum, nor via the django-developers list. Please see our security
policies for further information.
Read: https://www.djangoproject.com/weblog/2024/feb/06/security-releases/
Leveraging HTMX for Dynamic UI in Django Projects
What is HTMX?
HTMX is a powerful tool that allows developers to create highly interactive and dynamic user interfaces without the need for heavy JavaScript frameworks. At its core, HTMX uses HTML attributes to define behaviour, making it an ideal com...
Read: https://mounir.hashnode.dev/leveraging-htmx-for-dynamic-ui-in-django-projects
What is HTMX?
HTMX is a powerful tool that allows developers to create highly interactive and dynamic user interfaces without the need for heavy JavaScript frameworks. At its core, HTMX uses HTML attributes to define behaviour, making it an ideal com...
Read: https://mounir.hashnode.dev/leveraging-htmx-for-dynamic-ui-in-django-projects
Docker- How To Dockerize A Django Application
Here I will work you through the steps to dockerize your Django application
Check Dependencies:
First make sure you have Docker and Python installed if not install them
#This checks the version of python
$ python --version
#This checks the version o...
Read: https://hilarydev.hashnode.dev/docker-how-to-dockerize-a-django-application
Here I will work you through the steps to dockerize your Django application
Check Dependencies:
First make sure you have Docker and Python installed if not install them
#This checks the version of python
$ python --version
#This checks the version o...
Read: https://hilarydev.hashnode.dev/docker-how-to-dockerize-a-django-application
👍1
React Django To-do app using Jenkins
1. Jenkins Installation on Ubuntu
Jenkins requires Java to run.
sudo apt update
sudo apt install openjdk-11-jdk -y
First, add the repository key to your system:
sudo wget -O /usr/share/keyrings/jenkins-keyring.asc \
https://pkg.jenkins.io/debian/j...
Read: https://rushikesh-rawool.hashnode.dev/react-django-to-do-app-using-jenkins
1. Jenkins Installation on Ubuntu
Jenkins requires Java to run.
sudo apt update
sudo apt install openjdk-11-jdk -y
First, add the repository key to your system:
sudo wget -O /usr/share/keyrings/jenkins-keyring.asc \
https://pkg.jenkins.io/debian/j...
Read: https://rushikesh-rawool.hashnode.dev/react-django-to-do-app-using-jenkins
👍1
Simple Django Tip #9
Image attribute: Social media illustrations by Storyset
Introduction
I started to write about Django tips in concurrence to my development with a product I'm building. As and when I complete developing a logical step, I take the crux of it and share ...
Read: https://hellosambhavi.com/simple-django-tip-9
Image attribute: Social media illustrations by Storyset
Introduction
I started to write about Django tips in concurrence to my development with a product I'm building. As and when I complete developing a logical step, I take the crux of it and share ...
Read: https://hellosambhavi.com/simple-django-tip-9
Building a Simple Blogging GraphQL API with Django and Strawberry
What is GraphQL?
GraphQL is a query language for APIs that enables clients to request only the data they need and nothing more. Unlike traditional REST APIs, where clients are often constrained by the fixed structure of the responses, GraphQL allows ...
Read: https://aniketdubey.hashnode.dev/building-a-simple-blogging-graphql-api-with-django-and-strawberry
What is GraphQL?
GraphQL is a query language for APIs that enables clients to request only the data they need and nothing more. Unlike traditional REST APIs, where clients are often constrained by the fixed structure of the responses, GraphQL allows ...
Read: https://aniketdubey.hashnode.dev/building-a-simple-blogging-graphql-api-with-django-and-strawberry
👍4
Django Rest Framework Customization Mastery
As a Django developer, mastering the art of customizing serializers, views, and models in DRF is a significant step towards building powerful and flexible web applications. In this article, we'll delve into various customization techniques and provid...
Read: https://austinik.hashnode.dev/django-rest-framework-customization-mastery
As a Django developer, mastering the art of customizing serializers, views, and models in DRF is a significant step towards building powerful and flexible web applications. In this article, we'll delve into various customization techniques and provid...
Read: https://austinik.hashnode.dev/django-rest-framework-customization-mastery
Middleware in Django: The Unseen Hand of Your Backend Development
In the bustling world of web development, every request and response needs a smooth journey. Django, the ever-popular Python framework, empowers developers with a powerful tool called middleware to manage this flow seamlessly. Think of middleware as ...
Read: https://techvillian.hashnode.dev/middleware-in-django-the-unseen-hand-of-your-backend-development
In the bustling world of web development, every request and response needs a smooth journey. Django, the ever-popular Python framework, empowers developers with a powerful tool called middleware to manage this flow seamlessly. Think of middleware as ...
Read: https://techvillian.hashnode.dev/middleware-in-django-the-unseen-hand-of-your-backend-development
👍1
Turbocharging Django: A Deep Dive into Optimization Strategies
Whenever we are developing something, a lot of questions come to our mind. One of the questions that comes to my mind quite often is 'What if my database gets a hell lot of entries? What would happen to my APIs that fetch data from the database? Woul...
Read: https://musaaib.hashnode.dev/optimising-our-django-application
Whenever we are developing something, a lot of questions come to our mind. One of the questions that comes to my mind quite often is 'What if my database gets a hell lot of entries? What would happen to my APIs that fetch data from the database? Woul...
Read: https://musaaib.hashnode.dev/optimising-our-django-application
👍1
FullStack Next.js & Django Authentication: Django REST, TypeScript, JWT, Wretch & Djoser
If you're a software engineer, especially a full-stack developer, your job involves merging different technologies—like backend and frontend—to build applications. This guide is tailored for developers familiar with Python or JavaScript, specifically...
Read: https://koladev.hashnode.dev/fullstack-nextjs-django-authentication-django-rest-typescript-jwt-wretch-djoser-clsi9zfeq00000akw96ej642s
If you're a software engineer, especially a full-stack developer, your job involves merging different technologies—like backend and frontend—to build applications. This guide is tailored for developers familiar with Python or JavaScript, specifically...
Read: https://koladev.hashnode.dev/fullstack-nextjs-django-authentication-django-rest-typescript-jwt-wretch-djoser-clsi9zfeq00000akw96ej642s
Авторизация в Django (DRF) и React по JWT-токену
Когда-то давно я уже делал авторизацию в Django и думал, что знаю о ней всё, но то была ошибка и оказалось, что я вообще ничего не знал и пользовался готовыми инструментами Django из коробки.
Когда я начал писать авторизацию для своего сайта, я столкнулся с тем, что в интернете есть информация и по JWT токену и по самой реализации авторизации, однако все реализации, найденные мною были нагромождены ненужным кодом, который мало относится к основной идее, либо одна из частей реализации будь то BackEnd или FrontEnd были плохо раскрыты. Поэтому я решил написать эту статью.
Читать: https://habr.com/ru/articles/793058/
Когда-то давно я уже делал авторизацию в Django и думал, что знаю о ней всё, но то была ошибка и оказалось, что я вообще ничего не знал и пользовался готовыми инструментами Django из коробки.
Когда я начал писать авторизацию для своего сайта, я столкнулся с тем, что в интернете есть информация и по JWT токену и по самой реализации авторизации, однако все реализации, найденные мною были нагромождены ненужным кодом, который мало относится к основной идее, либо одна из частей реализации будь то BackEnd или FrontEnd были плохо раскрыты. Поэтому я решил написать эту статью.
Читать: https://habr.com/ru/articles/793058/
👍1
How to use Git and GitHub while working with teams
Introduction
Git is a fundamental tool in modern software development, and understanding how to effectively use it in a team is crucial.
Many teams face challenges related to branch management, handling conflicts, and coordinating work among team mem...
Read: https://jaspreetsh.hashnode.dev/how-to-use-git-and-github-while-working-with-teams
Introduction
Git is a fundamental tool in modern software development, and understanding how to effectively use it in a team is crucial.
Many teams face challenges related to branch management, handling conflicts, and coordinating work among team mem...
Read: https://jaspreetsh.hashnode.dev/how-to-use-git-and-github-while-working-with-teams
To-Do Notes App
Django To-Do Notes App
🚀 Just deployed a simple to-do notes app using shell scripting! 💻 Here's how I did it:
1️⃣ Clone the repository:
git clone https://github.com/pushkalv/django-notes-app.git
2️⃣ Build the app:
docker build -t notes-app .
3️⃣ ...
Read: https://pushkalv.hashnode.dev/to-do-notes-app
Django To-Do Notes App
🚀 Just deployed a simple to-do notes app using shell scripting! 💻 Here's how I did it:
1️⃣ Clone the repository:
git clone https://github.com/pushkalv/django-notes-app.git
2️⃣ Build the app:
docker build -t notes-app .
3️⃣ ...
Read: https://pushkalv.hashnode.dev/to-do-notes-app
👍1
Full Stack Developer | Python | Django | Flask | Fast API | React
As a full-stack developer, I can wear a few hats like:
Back-end Developer -- Python (Django, Flask) Node, Express, Nest, Rest APIs, Fast API, Cloud Infrastructure, ETL Pipelines
Front-end Developer -- React, Redux, Next.js, Nuxt.js, Hooks, Angula...
Read: https://huesbynadia.hashnode.dev/full-stack-developer-python-django-flask-fast-api-react
As a full-stack developer, I can wear a few hats like:
Back-end Developer -- Python (Django, Flask) Node, Express, Nest, Rest APIs, Fast API, Cloud Infrastructure, ETL Pipelines
Front-end Developer -- React, Redux, Next.js, Nuxt.js, Hooks, Angula...
Read: https://huesbynadia.hashnode.dev/full-stack-developer-python-django-flask-fast-api-react
👍1🤔1
Django in Google's Project IDX
Google's Project IDX presents a groundbreaking integrated development environment (IDE) empowered with AI programming assistants and versatile template support. In this detailed guide, we'll navigate through the setup and execution of a Django projec...
Read: https://unrivalledking.hashnode.dev/django-in-googles-project-idx
Google's Project IDX presents a groundbreaking integrated development environment (IDE) empowered with AI programming assistants and versatile template support. In this detailed guide, we'll navigate through the setup and execution of a Django projec...
Read: https://unrivalledking.hashnode.dev/django-in-googles-project-idx
👍1
Django Email services with Google SMTP
In this Tutorial we are going to learn how to build an email service using django and google smtp. It is believed you already have basic knowledge of django and django restframework.
At the end of this tutorial we should know
How to setup google mai...
Read: https://victoriduh.hashnode.dev/django-email-services-with-google-smtp
In this Tutorial we are going to learn how to build an email service using django and google smtp. It is believed you already have basic knowledge of django and django restframework.
At the end of this tutorial we should know
How to setup google mai...
Read: https://victoriduh.hashnode.dev/django-email-services-with-google-smtp
👍1
Why you should Learn Python in 2024
Introduction: Understanding Python's Core Features
Python is an interpreted, object-oriented, high-level programming language with dynamic semantics.
Now let's break it down:
Open Source: Python's source code is freely available for anyone to inspec...
Read: https://fusedtechie.hashnode.dev/why-you-should-learn-python-in-2024
Introduction: Understanding Python's Core Features
Python is an interpreted, object-oriented, high-level programming language with dynamic semantics.
Now let's break it down:
Open Source: Python's source code is freely available for anyone to inspec...
Read: https://fusedtechie.hashnode.dev/why-you-should-learn-python-in-2024
Время, как часть платформы ERP-систем
Всем привет!
Продолжаю публиковать странные и непонятные статьи.
Но вдруг, кому-то пригодится.
Поехали...
Хочется поговорить о времени, как о состоянии системы.
Но для начала нужна вводная: первая из них — временнАя переменная. С чего стартуем? Стартуем с дебага, как и я когда-то. Сидишь, трейсишь программу, и в дебаге у тебя есть несколько инструментов для похода по исходному коду: какой-нибудь step over, step into, run to cursor, step next. Ну, вроде все есть, но как бы: а где step back? Вы никогда не пролетали в отладке мимо того, что отлаживаете? И сколько раз приходилось перезапускать отладку? Может, я один такой… несчастливый?
Как раз, проблема в том, что обратные операции неочевидны. Процессоры, (может я и неправ, это просто гипотеза), не могут работать в обратном направлении по исходному коду. Операция степени в обратном направлении - это извлечение корня, например. Возможно, поэтому у нас нет такого очевидного и удобного, лично для меня, инструмента - как вернуться на строку назад от текущей…
Что может помочь? Например, какие-нибудь инструменты логирования. Мы берем область памяти, которая выделена для хранения значения переменной, и записываем в “блокнот”, что там происходит. В этом такте одно значение, в следующем другое… Мы формируем логи, так сказать.
Когда мы объявляем переменную, она будет “работать” с момента объявления до момента окончания работы исходного кода (выхода из подпрограммы или удаления этой переменной). Ее значение в процессе может быть многократно изменено без возможности восстановления. Обычно нас это устраивает, и значения в дебаге нас интересуют только в текущий момент. Обычно это говорит о том, что значение “вечно”, оно было таким всегда, даже если один такт назад это было не так.
Читать: https://habr.com/ru/articles/793944/
Всем привет!
Продолжаю публиковать странные и непонятные статьи.
Но вдруг, кому-то пригодится.
Поехали...
Хочется поговорить о времени, как о состоянии системы.
Но для начала нужна вводная: первая из них — временнАя переменная. С чего стартуем? Стартуем с дебага, как и я когда-то. Сидишь, трейсишь программу, и в дебаге у тебя есть несколько инструментов для похода по исходному коду: какой-нибудь step over, step into, run to cursor, step next. Ну, вроде все есть, но как бы: а где step back? Вы никогда не пролетали в отладке мимо того, что отлаживаете? И сколько раз приходилось перезапускать отладку? Может, я один такой… несчастливый?
Как раз, проблема в том, что обратные операции неочевидны. Процессоры, (может я и неправ, это просто гипотеза), не могут работать в обратном направлении по исходному коду. Операция степени в обратном направлении - это извлечение корня, например. Возможно, поэтому у нас нет такого очевидного и удобного, лично для меня, инструмента - как вернуться на строку назад от текущей…
Что может помочь? Например, какие-нибудь инструменты логирования. Мы берем область памяти, которая выделена для хранения значения переменной, и записываем в “блокнот”, что там происходит. В этом такте одно значение, в следующем другое… Мы формируем логи, так сказать.
Когда мы объявляем переменную, она будет “работать” с момента объявления до момента окончания работы исходного кода (выхода из подпрограммы или удаления этой переменной). Ее значение в процессе может быть многократно изменено без возможности восстановления. Обычно нас это устраивает, и значения в дебаге нас интересуют только в текущий момент. Обычно это говорит о том, что значение “вечно”, оно было таким всегда, даже если один такт назад это было не так.
Читать: https://habr.com/ru/articles/793944/
🔥2❤1
Day 88: Project 9- Efficient Deployment of a Django Todo App on AWS EC2 with Kubernetes: Harnessing Auto-Scaling and Auto-Healing
Project Overview: The project entails deploying a Django Todo app on AWS EC2 using a Kubernetes cluster provisioned with Kubeadm. Kubernetes facilitates auto-scaling and auto-healing of the application, ensuring reliability and scalability.
Task-01: ...
Read: https://veddevopsblog.hashnode.dev/day-88-project-9-efficient-deployment-of-a-django-todo-app-on-aws-ec2-with-kubernetes-harnessing-auto-scaling-and-auto-healing
Project Overview: The project entails deploying a Django Todo app on AWS EC2 using a Kubernetes cluster provisioned with Kubeadm. Kubernetes facilitates auto-scaling and auto-healing of the application, ensuring reliability and scalability.
Task-01: ...
Read: https://veddevopsblog.hashnode.dev/day-88-project-9-efficient-deployment-of-a-django-todo-app-on-aws-ec2-with-kubernetes-harnessing-auto-scaling-and-auto-healing
👍1