Handling JSON Data Serialization when Working with Django REST Framework APIs
Introduction
Website development, and computer programming in general, involves handling and manipulating data. Many web apps constitute database serves that hold various types of data. Client computers frequently need to retrieve or update the data,...
Read: https://nickoch.hashnode.dev/handling-json-data-serialization-when-working-with-django-rest-framework-apis
Introduction
Website development, and computer programming in general, involves handling and manipulating data. Many web apps constitute database serves that hold various types of data. Client computers frequently need to retrieve or update the data,...
Read: https://nickoch.hashnode.dev/handling-json-data-serialization-when-working-with-django-rest-framework-apis
A Guide to Building Your Own Custom Tags and Filters
In Django, making dynamic content can be hard without built-in tools. It gets confusing without ready-made ways to add special actions in templates. That's where custom template tags come in! They rescue us by making it easy to do special things in o...
Read: https://bisesh-blog.hashnode.dev/a-guide-to-building-your-own-custom-tags-and-filters
In Django, making dynamic content can be hard without built-in tools. It gets confusing without ready-made ways to add special actions in templates. That's where custom template tags come in! They rescue us by making it easy to do special things in o...
Read: https://bisesh-blog.hashnode.dev/a-guide-to-building-your-own-custom-tags-and-filters
What is framework?
A framework is a set of conceptural structure and guidelines used to build something useful
A framework may include predefined classes and functions that can be used to process input, manage hardware devices, and interact with system software
Why use...
Read: https://devopsumesh.hashnode.dev/what-is-framework
A framework is a set of conceptural structure and guidelines used to build something useful
A framework may include predefined classes and functions that can be used to process input, manage hardware devices, and interact with system software
Why use...
Read: https://devopsumesh.hashnode.dev/what-is-framework
How to migrate SQL db data in Django?
I recently had a task at hand to migrate from a on VM PostgreSQL DB instance to Azure PostgreSQL Flexible server (a cloud native managed PostgreSQL server). We use docker compose for service orchestration for local development due to its easy of use ...
Read: https://nikhilakki.in/how-to-migrate-sql-db-data-in-django
I recently had a task at hand to migrate from a on VM PostgreSQL DB instance to Azure PostgreSQL Flexible server (a cloud native managed PostgreSQL server). We use docker compose for service orchestration for local development due to its easy of use ...
Read: https://nikhilakki.in/how-to-migrate-sql-db-data-in-django
👍2
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