Select Related and Prefetch Related
In Django, select_related() and prefetch_related() are used to optimize database queries by reducing the number of database calls needed to retrieve related objects. Here are some examples of when to use each one:
select_related(): Use select_relate...
Read: https://arjun.name.np/select-related-and-prefetch-related
In Django, select_related() and prefetch_related() are used to optimize database queries by reducing the number of database calls needed to retrieve related objects. Here are some examples of when to use each one:
select_related(): Use select_relate...
Read: https://arjun.name.np/select-related-and-prefetch-related
🤔1
Django Model best practices
Keep models small and focused with verbose field names: Limit each model to one responsibility and use clear, descriptive names for fields to improve readability.
Avoid complex inheritance structures and favor simple abstract base classes: Use mixin...
Read: https://pythonislove.com/django-model-best-practices
Keep models small and focused with verbose field names: Limit each model to one responsibility and use clear, descriptive names for fields to improve readability.
Avoid complex inheritance structures and favor simple abstract base classes: Use mixin...
Read: https://pythonislove.com/django-model-best-practices
Class Based Views or Function Based Views
The decision of using Django function-based views or class-based views depends on the application's complexity and requirements.
Function-based views (FBVs) can be a good fit for simple use cases where you only need to handle a single HTTP request me...
Read: https://pythonislove.com/class-based-views-or-function-based-views
The decision of using Django function-based views or class-based views depends on the application's complexity and requirements.
Function-based views (FBVs) can be a good fit for simple use cases where you only need to handle a single HTTP request me...
Read: https://pythonislove.com/class-based-views-or-function-based-views
Getting Started with Django: Building Web Applications in One Week
Django is a powerful and popular Python web framework that allows you to quickly build web applications. In just 7-8 days of learning, I have gained an understanding of Django's key concepts, including function-based and class-based views. These view...
Read: https://augus7.hashnode.dev/getting-started-with-django-building-web-applications-in-one-week
Django is a powerful and popular Python web framework that allows you to quickly build web applications. In just 7-8 days of learning, I have gained an understanding of Django's key concepts, including function-based and class-based views. These view...
Read: https://augus7.hashnode.dev/getting-started-with-django-building-web-applications-in-one-week
Django URLs naming conventions and best practices
Here are the most common Django URL naming conventions:
app_name:namespace: Define an app-level namespace for your URLs by setting the app_name variable in the app's urls.py file. This can help avoid naming conflicts if you have multiple apps.
name...
Read: https://pythonislove.com/django-urls-naming-conventions-and-best-practices
Here are the most common Django URL naming conventions:
app_name:namespace: Define an app-level namespace for your URLs by setting the app_name variable in the app's urls.py file. This can help avoid naming conflicts if you have multiple apps.
name...
Read: https://pythonislove.com/django-urls-naming-conventions-and-best-practices
Order of Components in Django Model
There is no strict order that you must follow when organizing your Django models, but it's best to keep them organized and readable to make it easier for other developers to understand your code. Here is one possible order that you can follow:
Const...
Read: https://pythonislove.com/order-of-components-in-django-model
There is no strict order that you must follow when organizing your Django models, but it's best to keep them organized and readable to make it easier for other developers to understand your code. Here is one possible order that you can follow:
Const...
Read: https://pythonislove.com/order-of-components-in-django-model
Getting Started with Django: Building Web Applications
Django is a powerful and popular Python web framework that allows you to quickly build web applications. In just 10-12 days of learning, I have gained an understanding of Django's key concepts, including function-based and class-based views. These vi...
Read: https://augus7.hashnode.dev/getting-started-with-django-building-web-applications
Django is a powerful and popular Python web framework that allows you to quickly build web applications. In just 10-12 days of learning, I have gained an understanding of Django's key concepts, including function-based and class-based views. These vi...
Read: https://augus7.hashnode.dev/getting-started-with-django-building-web-applications
Building Couse Assist Part 5: Rebuilding chat functionality from scratch (2/2).
This is a continuation of the previous blog which if you haven't read please do check out. In the previous blog, I started the process of creating chat functionality from scratch a process that is kinda long and complicated🙄which is why I decided to...
Read: https://andysonm.hashnode.dev/building-couse-assist-part-5-rebuilding-chat-functionality-from-scratch-22
This is a continuation of the previous blog which if you haven't read please do check out. In the previous blog, I started the process of creating chat functionality from scratch a process that is kinda long and complicated🙄which is why I decided to...
Read: https://andysonm.hashnode.dev/building-couse-assist-part-5-rebuilding-chat-functionality-from-scratch-22
PyCharm & DSF Campaign 2023 Results
We are excited to share the results of the annual Django Developers
Survey which was conducted this year in collaboration with JetBrains.
Almost 5,000 Django users from 248 countries took the survey which
covered a broad list of topics including Django usage, operating
systems, libraries, tools, and many other insights.
View the results of the 2022 Django Developers
Survey.
If you have feedback on the findings and how to improve the survey in
future years please share on the official Django
Forum.
Thank you to everyone who participated!
Read: https://www.djangoproject.com/weblog/2023/mar/09/pycharm-dsf-campaign-2023-results/
We are excited to share the results of the annual Django Developers
Survey which was conducted this year in collaboration with JetBrains.
Almost 5,000 Django users from 248 countries took the survey which
covered a broad list of topics including Django usage, operating
systems, libraries, tools, and many other insights.
View the results of the 2022 Django Developers
Survey.
If you have feedback on the findings and how to improve the survey in
future years please share on the official Django
Forum.
Thank you to everyone who participated!
Read: https://www.djangoproject.com/weblog/2023/mar/09/pycharm-dsf-campaign-2023-results/
Django Developers Survey 2022 Results
We are excited to share the results of the annual Django Developers
Survey which was conducted this year in collaboration with JetBrains.
Almost 5,000 Django users from 248 countries took the survey which
covered a broad list of topics including Django usage, operating
systems, libraries, tools, and many other insights.
View the results of the 2022 Django Developers
Survey.
If you have feedback on the findings and how to improve the survey in
future years please share on the official Django
Forum.
Thank you to everyone who participated!
Read: https://www.djangoproject.com/weblog/2023/mar/09/django-developers-survey-2022-results/
We are excited to share the results of the annual Django Developers
Survey which was conducted this year in collaboration with JetBrains.
Almost 5,000 Django users from 248 countries took the survey which
covered a broad list of topics including Django usage, operating
systems, libraries, tools, and many other insights.
View the results of the 2022 Django Developers
Survey.
If you have feedback on the findings and how to improve the survey in
future years please share on the official Django
Forum.
Thank you to everyone who participated!
Read: https://www.djangoproject.com/weblog/2023/mar/09/django-developers-survey-2022-results/
Django Models
Django is a python web framework for building web applications.
Django Models is one of the key components of Django Web Application.
It helps us to create a database for our app without writing queries ourselves.
Some key concepts of Django models a...
Read: https://devrajsblog.hashnode.dev/django-models
Django is a python web framework for building web applications.
Django Models is one of the key components of Django Web Application.
It helps us to create a database for our app without writing queries ourselves.
Some key concepts of Django models a...
Read: https://devrajsblog.hashnode.dev/django-models
Introducing CVBuild 🎉
CVBuild is a platform where you can build your resume and online portfolio for free.
Check out for more information here https://cv-build.onrender.com.
Read: https://chryzcode.hashnode.dev/introducing-cvbuild
CVBuild is a platform where you can build your resume and online portfolio for free.
Check out for more information here https://cv-build.onrender.com.
Read: https://chryzcode.hashnode.dev/introducing-cvbuild
Day-17 Task: Docker Project for DevOps Engineers (Dockerfile):Part-2
What is Dockerfile?
Docker is a tool that makes it easy to run applications in containers. Containers are like small packages that hold everything an application needs to run. To create these containers, developers use something called a Dockerfile.
...
Read: https://deepakcloud22.hashnode.dev/day-17-task-docker-project-for-devops-engineers-dockerfilepart-2
What is Dockerfile?
Docker is a tool that makes it easy to run applications in containers. Containers are like small packages that hold everything an application needs to run. To create these containers, developers use something called a Dockerfile.
...
Read: https://deepakcloud22.hashnode.dev/day-17-task-docker-project-for-devops-engineers-dockerfilepart-2
HTML over WebSockets, a new approach to SPAs
No more Javascript ?
I learned Javascript at the wrong time, just after the release of ES6 with all the modifications that you know. Similarly, for Express and React, they were the new technologies to adopt (Javascript everywhere !), but the French j...
Read: https://arctenis.hashnode.dev/html-over-websockets-a-new-approach-to-spas
No more Javascript ?
I learned Javascript at the wrong time, just after the release of ES6 with all the modifications that you know. Similarly, for Express and React, they were the new technologies to adopt (Javascript everywhere !), but the French j...
Read: https://arctenis.hashnode.dev/html-over-websockets-a-new-approach-to-spas
Caching tips in Django
Caching is a technique used in computer science and information technology to store frequently used data or computations in a high-speed storage or memory location, in order to reduce the time it takes to access or calculate that data.
When a request...
Read: https://pythonislove.com/caching-tips-in-django
Caching is a technique used in computer science and information technology to store frequently used data or computations in a high-speed storage or memory location, in order to reduce the time it takes to access or calculate that data.
When a request...
Read: https://pythonislove.com/caching-tips-in-django
Template Fragment Caching in Django
Template fragment caching is a technique that allows you to cache specific parts of a Django template that are expensive to generate or compute. Here's how to implement template fragment caching in Django:
First, you need to install a caching backen...
Read: https://pythonislove.com/template-fragment-caching-in-django
Template fragment caching is a technique that allows you to cache specific parts of a Django template that are expensive to generate or compute. Here's how to implement template fragment caching in Django:
First, you need to install a caching backen...
Read: https://pythonislove.com/template-fragment-caching-in-django
Building a School Management System with Django
Overview
We will be building a full-fledged school management system and deploying it to the web. We will be starting from scratch and gradually building up on the foundation of our Django knowledge. There will be a proper explanation for every code ...
Read: https://rishabhdev.hashnode.dev/building-a-school-management-system-with-django
Overview
We will be building a full-fledged school management system and deploying it to the web. We will be starting from scratch and gradually building up on the foundation of our Django knowledge. There will be a proper explanation for every code ...
Read: https://rishabhdev.hashnode.dev/building-a-school-management-system-with-django
Hidden gems i acquired from open source projects
So recently I started contributing to an open-source project called wagtail
as I found myself capable enough or maybe free enough ;-)
"but why should I even contribute to open-source projects I am not getting anything in return".people often ask this...
Read: https://saltyivylearning.hashnode.dev/hidden-gems-i-acquired-from-open-source-projects
So recently I started contributing to an open-source project called wagtail
as I found myself capable enough or maybe free enough ;-)
"but why should I even contribute to open-source projects I am not getting anything in return".people often ask this...
Read: https://saltyivylearning.hashnode.dev/hidden-gems-i-acquired-from-open-source-projects
Ghost in the Machine
Why am I writing this? Because sometimes the best way to deal with your problems is to force everyone to read about them. The facts have been altered to make them more awesome.
After a month-long collaborative effort of the entire backend team, Raju ...
Read: https://blog.azanulhaque.tech/ghost-in-the-machine
Why am I writing this? Because sometimes the best way to deal with your problems is to force everyone to read about them. The facts have been altered to make them more awesome.
After a month-long collaborative effort of the entire backend team, Raju ...
Read: https://blog.azanulhaque.tech/ghost-in-the-machine
🔥1
My Journey on how I built a marketplace part 2
This article continues from the first series which can be found here in part 1. After creating the custom user and the product app, I created the database for the product using this method.
from django.db import models
from django.conf import setting...
Read: https://sawacha.hashnode.dev/my-journey-on-how-i-built-a-marketplace-part-2
This article continues from the first series which can be found here in part 1. After creating the custom user and the product app, I created the database for the product using this method.
from django.db import models
from django.conf import setting...
Read: https://sawacha.hashnode.dev/my-journey-on-how-i-built-a-marketplace-part-2