Optimising Database Performance in Django: Harnessing the Power of a Read-Only Database
In the fast-paced world of web development, the performance of your application can make or break the user experience. As your user base grows and new features are added, the demands on your database can skyrocket, leading to slower response times an...
Read: https://blog.codewithtemi.site/optimising-database-performance-in-django-harnessing-the-power-of-a-read-only-database
In the fast-paced world of web development, the performance of your application can make or break the user experience. As your user base grows and new features are added, the demands on your database can skyrocket, leading to slower response times an...
Read: https://blog.codewithtemi.site/optimising-database-performance-in-django-harnessing-the-power-of-a-read-only-database
👍1
Django security releases issued: 4.2.7, 4.1.13, and 3.2.23
In accordance with our security release policy, the Django team
is issuing Django 4.2.7, Django 4.1.13, and Django 3.2.23.
These releases addresses the security issue detailed below. We encourage all
users of Django to upgrade as soon as possible.
CVE-2023-46695: Potential denial of service vulnerability in UsernameField on Windows
The NFKC normalization is slow on Windows. As a consequence, django.contrib.auth.forms.UsernameField was subject to a potential denial
of service attack via certain inputs with a very large number of Unicode
characters.
In order to avoid the vulnerability, invalid values longer than UsernameField.max_length are no longer normalized, since they cannot pass
validation anyway.
Thanks MProgrammer for the report.
This issue has severity "moderate" according to the Django security policy.
Affected supported versions
* Django main branch
* Django 5.0 (currently at beta status)
* Django 4.2
* Django 4.1
* Django 3.2
Resolution
Patches to resolve the issue have been applied to Django's main branch and the
5.0, 4.2, 4.1, and 3.2 release 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 4.1 release branch
* On the 3.2 release branch
The following releases have been issued:
* Django 4.2.7 (download Django 4.2.7 | 4.2.7 checksums)
* Django 4.1.13 (download Django 4.1.13 | 4.1.13 checksums)
* Django 3.2.23 (download Django 3.2.23 | 3.2.23 checksums)
The PGP key ID used for this release is Mariusz Felisiak: 2EF56372BA48CD1B.
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 or the django-developers list. Please see our security
policies for further
information.
Read: https://www.djangoproject.com/weblog/2023/nov/01/security-releases/
In accordance with our security release policy, the Django team
is issuing Django 4.2.7, Django 4.1.13, and Django 3.2.23.
These releases addresses the security issue detailed below. We encourage all
users of Django to upgrade as soon as possible.
CVE-2023-46695: Potential denial of service vulnerability in UsernameField on Windows
The NFKC normalization is slow on Windows. As a consequence, django.contrib.auth.forms.UsernameField was subject to a potential denial
of service attack via certain inputs with a very large number of Unicode
characters.
In order to avoid the vulnerability, invalid values longer than UsernameField.max_length are no longer normalized, since they cannot pass
validation anyway.
Thanks MProgrammer for the report.
This issue has severity "moderate" according to the Django security policy.
Affected supported versions
* Django main branch
* Django 5.0 (currently at beta status)
* Django 4.2
* Django 4.1
* Django 3.2
Resolution
Patches to resolve the issue have been applied to Django's main branch and the
5.0, 4.2, 4.1, and 3.2 release 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 4.1 release branch
* On the 3.2 release branch
The following releases have been issued:
* Django 4.2.7 (download Django 4.2.7 | 4.2.7 checksums)
* Django 4.1.13 (download Django 4.1.13 | 4.1.13 checksums)
* Django 3.2.23 (download Django 3.2.23 | 3.2.23 checksums)
The PGP key ID used for this release is Mariusz Felisiak: 2EF56372BA48CD1B.
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 or the django-developers list. Please see our security
policies for further
information.
Read: https://www.djangoproject.com/weblog/2023/nov/01/security-releases/
👍2
Setting Up Local Development Environment In Docker
When I was first introduced to Docker circa 2014, my use case was mostly just to standardise the development environment between distributed teams of devs. We've all heard the "but it runs fine on my machine" retort.
I got sucked into the world of do...
Read: https://muizz.hashnode.dev/setting-up-local-development-environment-in-docker
When I was first introduced to Docker circa 2014, my use case was mostly just to standardise the development environment between distributed teams of devs. We've all heard the "but it runs fine on my machine" retort.
I got sucked into the world of do...
Read: https://muizz.hashnode.dev/setting-up-local-development-environment-in-docker
Running Django with Nginx Unit
I first discovered Unit back in 2019, when it was first released. Submitted a couple of issues on their Github. I was quite interested but it's not ready yet at that time.
Then I forgot, until yesterday. Was reading some discussion (forgot where) and...
Read: https://grep.koditi.my/running-django-with-nginx-unit
I first discovered Unit back in 2019, when it was first released. Submitted a couple of issues on their Github. I was quite interested but it's not ready yet at that time.
Then I forgot, until yesterday. Was reading some discussion (forgot where) and...
Read: https://grep.koditi.my/running-django-with-nginx-unit
Day 88 Task: Project-9
Project Description
The project involves deploying a Django Todo app on AWS EC2 using the Kubeadm Kubernetes cluster.
Kubernetes Cluster helps in the Auto-scaling and Auto-healing of your application.
🔶 Task-01: Efficient Django Todo App Deployment ...
Read: https://chandreshpatle.hashnode.dev/day-88-task-project-9
Project Description
The project involves deploying a Django Todo app on AWS EC2 using the Kubeadm Kubernetes cluster.
Kubernetes Cluster helps in the Auto-scaling and Auto-healing of your application.
🔶 Task-01: Efficient Django Todo App Deployment ...
Read: https://chandreshpatle.hashnode.dev/day-88-task-project-9
Getting Started with Django Filters: A Simple Overview
In this article we'll take a look at Django-filter— a package that gives us the ability to quickly and efficiently filter our querysets. To fully appreciate what this package does for us, we'll first implement a basic search feature where we write th...
Read: https://harunacodes.com/getting-started-with-django-filters-a-simple-overview
In this article we'll take a look at Django-filter— a package that gives us the ability to quickly and efficiently filter our querysets. To fully appreciate what this package does for us, we'll first implement a basic search feature where we write th...
Read: https://harunacodes.com/getting-started-with-django-filters-a-simple-overview
Important Libraries to know as a Django Developer
As a Django developer, you have access to a rich ecosystem of libraries and packages that can significantly enhance your productivity and the functionality of your web applications. Here are some important libraries and packages that every Django dev...
Read: https://noahdroid.hashnode.dev/important-libraries-to-know-as-a-django-developer
As a Django developer, you have access to a rich ecosystem of libraries and packages that can significantly enhance your productivity and the functionality of your web applications. Here are some important libraries and packages that every Django dev...
Read: https://noahdroid.hashnode.dev/important-libraries-to-know-as-a-django-developer
Noah Okoh's Blog
Important Libraries to know as a Django Developer
As a Django developer, you have access to a rich ecosystem of libraries and packages that can significantly enhance your productivity and the functionality of your web applications. Here are some important libraries and packages that every Django dev...
Simple Django Tip #3
My previous tip was about .env file to store environment variables. This one is about configuring pytest in a Django project so that we can write test cases easily. pytest is an obvious choice when it comes to testing frameworks for pythonistas. A fe...
Read: https://hellosambhavi.com/simple-django-tip-3
My previous tip was about .env file to store environment variables. This one is about configuring pytest in a Django project so that we can write test cases easily. pytest is an obvious choice when it comes to testing frameworks for pythonistas. A fe...
Read: https://hellosambhavi.com/simple-django-tip-3
Mastering E-Commerce Backend Development with Django: User Registration
Hello developer! In the last two posts in this series, we looked into the series introduction and setting up our project. In this post, we now start with the e-commerce authentication system. But first, what's authentication?
Authentication systems ...
Read: https://djangoway.hashnode.dev/mastering-e-commerce-backend-development-with-django-user-registration
Hello developer! In the last two posts in this series, we looked into the series introduction and setting up our project. In this post, we now start with the e-commerce authentication system. But first, what's authentication?
Authentication systems ...
Read: https://djangoway.hashnode.dev/mastering-e-commerce-backend-development-with-django-user-registration
Building a Custom Django Project/ Application(Folders and Files 2)
Introduction
What is a project or application that is not custom-made and per the intent of the developer or client?
A dream project or application is primarily engineered from the thought or what can be called inspiration.
In addition, this article ...
Read: https://chryzcode.hashnode.dev/building-a-custom-django-project-applicationfolders-and-files-2
Introduction
What is a project or application that is not custom-made and per the intent of the developer or client?
A dream project or application is primarily engineered from the thought or what can be called inspiration.
In addition, this article ...
Read: https://chryzcode.hashnode.dev/building-a-custom-django-project-applicationfolders-and-files-2
Optimizing Django: Pro Tips for Writing Cleaner and More Efficient Code
"Django: Where the 'D' stands for Development, and the rest of the letters spell out efficiency, scalability, and clean code."
Django is a high-level Web Framework for building Web Applications in Python. It's well known for its ease of use, flexibi...
Read: https://adityabansal.hashnode.dev/optimizing-django-pro-tips-for-writing-cleaner-and-more-efficient-code
"Django: Where the 'D' stands for Development, and the rest of the letters spell out efficiency, scalability, and clean code."
Django is a high-level Web Framework for building Web Applications in Python. It's well known for its ease of use, flexibi...
Read: https://adityabansal.hashnode.dev/optimizing-django-pro-tips-for-writing-cleaner-and-more-efficient-code
Python for Web Development
If you are reading this, it's either you're a programming beginner trying to figure out if Python is better option for you or you've been using other programming languages and want to transition to python or you've be using python programming languag...
Read: https://dyagee.hashnode.dev/python-for-web-development
If you are reading this, it's either you're a programming beginner trying to figure out if Python is better option for you or you've been using other programming languages and want to transition to python or you've be using python programming languag...
Read: https://dyagee.hashnode.dev/python-for-web-development
Building a CI/CD Pipeline for a Django-Based Web Application Using Jenkins: Part 1
Introduction
In today's fast-paced world, software development demands efficient, automated, and reliable processes. A CI/CD (Continuous Integration/Continuous Deployment) pipeline is a key component of modern software development, enabling teams to ...
Read: https://siddhantbhattarai.hashnode.dev/building-a-cicd-pipeline-for-a-django-based-web-application-using-jenkins-part-1
Introduction
In today's fast-paced world, software development demands efficient, automated, and reliable processes. A CI/CD (Continuous Integration/Continuous Deployment) pipeline is a key component of modern software development, enabling teams to ...
Read: https://siddhantbhattarai.hashnode.dev/building-a-cicd-pipeline-for-a-django-based-web-application-using-jenkins-part-1
Как сделать свою страницу в Django Admin с выразительной Hand Chart?
Привет, Хабр! Меня зовут Вячеслав Разводов, я работаю backend-разработчиком.
Мир покера – увлекательный и непредсказуемый. Волнение перед каждой раздачей, расчет силы своей руки, анализ оппонентов – все это создает уникальную атмосферу напряжения и азарта. Было время, я страстно увлекался покером и уделял этому увлечению много времени, стараясь постоянно улучшать свои навыки в этой игре. Читал книги, учился считать ауты. Много играл с друзьями или онлайн площадках PokerStarts, PokerDom. Время шло, моя страсть к покеру под остыла. Однажды я получил предложение поучаствовать в проекте связанным с покерной тематикой. Конечно я согласился не раздумывая.
Читать: https://habr.com/ru/articles/751176/
Привет, Хабр! Меня зовут Вячеслав Разводов, я работаю backend-разработчиком.
Мир покера – увлекательный и непредсказуемый. Волнение перед каждой раздачей, расчет силы своей руки, анализ оппонентов – все это создает уникальную атмосферу напряжения и азарта. Было время, я страстно увлекался покером и уделял этому увлечению много времени, стараясь постоянно улучшать свои навыки в этой игре. Читал книги, учился считать ауты. Много играл с друзьями или онлайн площадках PokerStarts, PokerDom. Время шло, моя страсть к покеру под остыла. Однажды я получил предложение поучаствовать в проекте связанным с покерной тематикой. Конечно я согласился не раздумывая.
Читать: https://habr.com/ru/articles/751176/
🔋 Learn Django the Easy Way with These 6 Free Resources
Django is one of the most popular web frameworks used by developers today.
But what exactly is Django, and why is it so widely used?
Django is a high-level Python web framework that enables the rapid development of secure and maintainable websites.
C...
Read: https://evergrowingdev.hashnode.dev/learn-django-the-easy-way-with-these-6-free-resources
Django is one of the most popular web frameworks used by developers today.
But what exactly is Django, and why is it so widely used?
Django is a high-level Python web framework that enables the rapid development of secure and maintainable websites.
C...
Read: https://evergrowingdev.hashnode.dev/learn-django-the-easy-way-with-these-6-free-resources
✍1
Two-Tier Web Application Deployment Using Docker Compose
Introduction
In today's fast-paced development world, deploying web applications has become a crucial part of any software project. Traditional deployment methods often involve a myriad of configurations and dependencies, making the process complex ...
Read: https://www.sagartech.in.net/two-tier-web-application-deployment-using-docker-compose
Introduction
In today's fast-paced development world, deploying web applications has become a crucial part of any software project. Traditional deployment methods often involve a myriad of configurations and dependencies, making the process complex ...
Read: https://www.sagartech.in.net/two-tier-web-application-deployment-using-docker-compose
🆒1
Django REST framework (CRUD Guide)
Welcome to this beginner-friendly tutorial on setting up a CRUD app using Django REST Framework!
If you’re looking to build a simple API that allows users to create, read, edit, and delete data, you’re in the right place. In this tutorial, we’ll guid...
Read: https://adnankattekaden.hashnode.dev/django-rest-framework-crud-guide
Welcome to this beginner-friendly tutorial on setting up a CRUD app using Django REST Framework!
If you’re looking to build a simple API that allows users to create, read, edit, and delete data, you’re in the right place. In this tutorial, we’ll guid...
Read: https://adnankattekaden.hashnode.dev/django-rest-framework-crud-guide
How Model Validation Works in Django REST Framework
When working with models Django handles most of the validation. This is because Django's built-in validators can do most of the things you want. In a traditional Django application, validation is triggered when you use a ModelForm. Most of the time y...
Read: https://harunacodes.com/how-model-validation-works-in-django-rest-framework
When working with models Django handles most of the validation. This is because Django's built-in validators can do most of the things you want. In a traditional Django application, validation is triggered when you use a ModelForm. Most of the time y...
Read: https://harunacodes.com/how-model-validation-works-in-django-rest-framework
How to connect the React JS frontend with the Django backend
This tutorial will guide you through the easy steps. We are going to set up the Django backend first then we'll set up our react frontend and finally connect them.
Setting up the Project
First, you need to create the main project folder 📂 go inside ...
Read: https://amitgajare.hashnode.dev/how-to-connect-the-react-js-frontend-with-the-django-backend
This tutorial will guide you through the easy steps. We are going to set up the Django backend first then we'll set up our react frontend and finally connect them.
Setting up the Project
First, you need to create the main project folder 📂 go inside ...
Read: https://amitgajare.hashnode.dev/how-to-connect-the-react-js-frontend-with-the-django-backend
❤1
Simple Django Tip #5
In this post, I plan to continue with some more tips to keep in mind while designing Django models. Just in case you are curious what's Part 1, here it is 😀
And yes, I'm taking the same hypothetical website that sells and delivers ice cream 🍦. Belo...
Read: https://hellosambhavi.com/simple-django-tip-5
In this post, I plan to continue with some more tips to keep in mind while designing Django models. Just in case you are curious what's Part 1, here it is 😀
And yes, I'm taking the same hypothetical website that sells and delivers ice cream 🍦. Belo...
Read: https://hellosambhavi.com/simple-django-tip-5
How to deploy a Django app to Vercel using WSGI
Find a free home for your Django app and deploy it easily and quickly straight from GitHub.
I deployed my ecommerce site using this method
Step 1: Export the dependencies of the application to a file named requirements.txt pip freeze > requirements.t...
Read: https://ifiokambrose.hashnode.dev/how-to-deploy-a-django-app-to-vercel-using-wsgi
Find a free home for your Django app and deploy it easily and quickly straight from GitHub.
I deployed my ecommerce site using this method
Step 1: Export the dependencies of the application to a file named requirements.txt pip freeze > requirements.t...
Read: https://ifiokambrose.hashnode.dev/how-to-deploy-a-django-app-to-vercel-using-wsgi