Django

[ follow ]
Djangosnippets
2 months ago
Django

JSONRequestMiddleware adds a .json() method to your HttpRequests

add JSONRequestMiddleware to your enabled middleware in Django settings.
Now, in your view functions, you can call request.json() to get a parsed json body!
json is consumed lazily, and cached.
Djangosnippets
2 months ago
Django

JSONRequestMiddleware adds a .json() method to your HttpRequests

add JSONRequestMiddleware to your enabled middleware in Django settings.
Now, in your view functions, you can call request.json() to get a parsed json body!
json is consumed lazily, and cached.
Djangocentral
2 months ago
Django

Django 4.1 adds async-compatible interface to QuerySet

The much-awaited pull request for an async-compatible interface to Queryset just got merged into the main branch of Django.
Djangocentral
2 months ago
Django

How To Create Custom Context Processors in Django

Django provides a convenient way to add extra data to the context of a template through context processors.
Djangocentral
2 months ago
Django

How To Create Custom Context Processors in Django

Django provides a convenient way to add extra data to the context of a template through context processors.
Djangosnippets
2 months ago
Django

Template tag - list punctuation for a list of items

If you have multiple items in a list and want them to be displayed as human readable list of items, this will add the proper punctuation to generate the text.
Djangosnippets
2 months ago
Django

Template tag - list punctuation for a list of items

If you have multiple items in a list and want them to be displayed as human readable list of items, this will add the proper punctuation to generate the text.
Djangocentral
2 months ago
Django

Django 4.1 adds async-compatible interface to QuerySet

The much-awaited pull request for an async-compatible interface to Queryset just got merged into the main branch of Django.
Djangocentral
2 months ago
Django

How to Check if a File Exists With Python

Checking if a file exists is a common task in while working with files.
Djangocentral
2 months ago
Django

Authentication using an Email Address In Django

Authentication is a crucial aspect of any web application, ensuring that only authorized users can access specific resources and perform actions.
Djangocentral
2 months ago
Django

Authentication using an Email Address In Django

Authentication is a crucial aspect of any web application, ensuring that only authorized users can access specific resources and perform actions.
Djangocentral
2 months ago
Django

Creating Custom Exception in Django Rest Framework

Django Rest Framework (DRF) provides built-in exception handling that can be used to handle errors and exceptions in a RESTful API.
Djangocentral
2 months ago
Django

Creating Custom Exception in Django Rest Framework

Django Rest Framework (DRF) provides built-in exception handling that can be used to handle errors and exceptions in a RESTful API.
Djangocentral
2 months ago
Django

How to Revert the Last Migration in Django

Table of Contents
In Django, migrations are used to manage changes to the database schema, such as creating or modifying tables.
Djangocentral
2 months ago
Django

How to Revert the Last Migration in Django

Table of Contents
In Django, migrations are used to manage changes to the database schema, such as creating or modifying tables.
Djangocentral
2 months ago
Django

Understanding related_name in Django Models

In Django, related_name is an attribute that can be used to specify the name of the reverse relation from the related model back to the model that defines the relation.
Djangocentral
2 months ago
Django

Understanding related_name in Django Models

In Django, related_name is an attribute that can be used to specify the name of the reverse relation from the related model back to the model that defines the relation.
Djangocentral
2 months ago
Django

How to Iterate Over Rows in a Dataframe in Pandas

Pandas is a powerful library for working with data in Python, and the DataFrame is one of its most widely used data structures.
Djangocentral
2 months ago
Django

How to Iterate Over Rows in a Dataframe in Pandas

Pandas is a powerful library for working with data in Python, and the DataFrame is one of its most widely used data structures.
Djangocentral
2 months ago
Django

Flask vs Django: Selecting the Perfect Python Web Framework

Python offers developers a multitude of options when it comes to web frameworks, but two of the most popular choices are Flask and Django.
Djangocentral
2 months ago
Django

Flask vs Django: Selecting the Perfect Python Web Framework

Python offers developers a multitude of options when it comes to web frameworks, but two of the most popular choices are Flask and Django.
Djangocentral
2 months ago
Django

How to Add ads.txt to Your Django Project: Boost Ad Revenue with Simple Implementation

If you're looking to maximize your ad revenue and monetization efforts in your Django project, adding ads.txt is a crucial step, ads.txt is a text file that helps prevent unauthorized ad inventory from being sold on your website, ensuring that only trusted advertisers can display ads.
Djangocentral
2 months ago
Django

Understanding the 'F' Expression in Django: When and Why to Use It

In Django, QuerySets provide a powerful way to retrieve, manipulate, and filter data from the database.
Djangocentral
2 months ago
Django

Understanding the 'F' Expression in Django: When and Why to Use It

In Django, QuerySets provide a powerful way to retrieve, manipulate, and filter data from the database.
Djangocentral
2 months ago
Django

How to Use Celery in Django for Asynchronous and Scheduled Tasks: A Straightforward Guide

In modern web development, the ability to handle time-consuming tasks asynchronously is crucial for enhancing the performance and responsiveness of web applications.
Djangocentral
2 months ago
Django

How to Use Celery in Django for Asynchronous and Scheduled Tasks: A Straightforward Guide

In modern web development, the ability to handle time-consuming tasks asynchronously is crucial for enhancing the performance and responsiveness of web applications.
Djangocentral
2 months ago
Django

Capturing Query Parameters of request.get in Django

When working with web applications, it's common to interact with URLs that contain query parameters.
Djangocentral
2 months ago
Django

Capturing Query Parameters of request.get in Django

When working with web applications, it's common to interact with URLs that contain query parameters.
Djangocentral
2 months ago
Django

How to Perform OR Queries in Django ORM

Django is a popular web framework for Python that provides an intuitive and powerful Object-Relational Mapping (ORM) system.
Djangocentral
2 months ago
Django

How to Perform OR Queries in Django ORM

Django is a popular web framework for Python that provides an intuitive and powerful Object-Relational Mapping (ORM) system.
Djangocentral
2 months ago
Django

The Ultimate Django Rest Framework Cheat Sheet: A Comprehensive GuideDjango Rest Framework CheetSheet: Mastering API Development

Django Rest Framework (DRF) is a powerful toolkit that makes building robust and scalable web APIs with Django a breeze.
Djangocentral
2 months ago
Django

The Ultimate Django Rest Framework Cheat Sheet: A Comprehensive GuideDjango Rest Framework CheetSheet: Mastering API Development

Django Rest Framework (DRF) is a powerful toolkit that makes building robust and scalable web APIs with Django a breeze.
Djangocentral
2 months ago
Django

DRF Serializer: Handling OrderedDict and Converting It to a Dictionary or JSON

In Django Rest Framework (DRF) tests, when you access serializer.data, you might encounter an OrderedDict instead of a regular dictionary.
Djangocentral
2 months ago
Django

How to Add ads.txt to Your Django Project: Boost Ad Revenue with Simple Implementation

If you're looking to maximize your ad revenue and monetization efforts in your Django project, adding ads.txt is a crucial step, ads.txt is a text file that helps prevent unauthorized ad inventory from being sold on your website, ensuring that only trusted advertisers can display ads.
Djangocentral
2 months ago
Django

How to Read a Text File in Python with Examples

Working with text files is a fundamental task in many Python applications.
Djangocentral
2 months ago
Django

How to Create an Empty Migration File in Django

Migrations are an essential part of Django, as they allow you to manage your database schema and ensure that it is consistent with your models.
Djangocentral
2 months ago
Django

How to Create an Empty Migration File in Django

Migrations are an essential part of Django, as they allow you to manage your database schema and ensure that it is consistent with your models.
Djangocentral
2 months ago
Django

How to Use @action Decorator in Django Rest Framework

Django Rest Framework (DRF) provides powerful tools to build robust APIs.
Djangocentral
2 months ago
Django

How to Use @action Decorator in Django Rest Framework

Django Rest Framework (DRF) provides powerful tools to build robust APIs.
Djangocentral
2 months ago
Django

Django ORM Cheatsheet: Mastering Database Operations in Django

Django, as a powerful and popular web framework, comes equipped with an impressive Object-Relational Mapping (ORM) system that simplifies database interactions and abstracts away much of the complexity involved in working with databases.
Djangocentral
2 months ago
Django

Django ORM Cheatsheet: Mastering Database Operations in Django

Django, as a powerful and popular web framework, comes equipped with an impressive Object-Relational Mapping (ORM) system that simplifies database interactions and abstracts away much of the complexity involved in working with databases.
Djangocentral
2 months ago
Django

How to Perform AND Queries in Django ORM

Django, as a popular web framework, provides a powerful Object-Relational Mapping (ORM) system that allows developers to interact with the database using Python code, abstracting away raw SQL queries.
Djangocentral
2 months ago
Django

How to Perform AND Queries in Django ORM

Django, as a popular web framework, provides a powerful Object-Relational Mapping (ORM) system that allows developers to interact with the database using Python code, abstracting away raw SQL queries.
Djangocentral
2 months ago
Django

How to Perform NOT Queries in Django ORM

In Django, performing NOT queries allows you to exclude certain records from the query results based on specific conditions.
Djangocentral
2 months ago
Django

How to Perform NOT Queries in Django ORM

In Django, performing NOT queries allows you to exclude certain records from the query results based on specific conditions.
Djangocentral
2 months ago
Django

DRF Serializer: Handling OrderedDict and Converting It to a Dictionary or JSON

In Django Rest Framework (DRF) tests, when you access serializer.data, you might encounter an OrderedDict instead of a regular dictionary.
Djangocentral
2 months ago
Django

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.
Djangocentral
2 months ago
Django

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.
Medium
2 months ago
Django

Guido van Rossum: The creator of the python programming language

In this article, I´ll dive into the life of Guido van Rossum, exploring the origins of his passion for programming, the journey of Python's development, and the enduring legacy he has created in the digital world.
Spiceworks
2 months ago
Django

The 12 Vital Differences Between R and Python - Spiceworks

R is an open-source programming language with an environment that is useful for performing statistical computing and data visualization.
Unite.AI
2 months ago
Django

10 Best Python Libraries for GUI

A graphical interface, or GUI, is an interactive environment that is the first thing a user sees and interacts with aftering opening an application or website.
Simplilearn.com
2 months ago
Django

Top 20 Python Automation Projects Ideas For Beginners

Python is a popular, advanced, interpreted, interactive, and object-oriented scripting language.Python is designed to be highly readable.
towardsdatascience.com
2 months ago
Django

Post-Quantum Cryptography with Python and Linux

Photo by Jean-Louis Paulin on Unsplash If we believe Edward Snowden, encryption is the only true protection against surveillance [1].
Unite.AI
2 months ago
Django

10 Best Python Libraries for Machine Learning & AI

Python has grown in popularity over the years to become one of the most popular programming languages for machine learning (ML) and artificial intelligence (AI) tasks.
Mashable
2 months ago
Django

Learn Python from home with this $20 expert-led bundle

TL;DR: As of July 21, get The 2023 Complete Python Certification Boot Camp Bundle for just $19.99 - that's 76% off.
Simplilearn.com
2 months ago
Django

What is Django Python? - Everything You Need to Know in 2022 | Simplilearn

Django is a Python-based web application framework that is free and open source.A framework is simply a collection of modules that facilitate development.
TechRadar
2 months ago
Django

Best IDE for Python of 2024

Integrated Development Environments for coding in Python
Built In
2 months ago
Django

What Is Flask?

Despite its simplicity, Flask has become a popular alternative to Django, which has a more complex structure and set of dependencies.
...
Is Flask Better Than Django?
CERN
2 months ago
Django

Volunteer for the Django Girls programming workshop

The Django Girls programming workshop run by CERN tutors is returning to IdeaSquare on 21 and 22 April 2023.
MobileAppAaily
2 months ago
Django

Top Python Courses for Beginners and Professionals

If you're also a newbie coder who wants to put a dent in the tech world, there are certain skills that you need to acquire to present your capabilities.
Simplilearn.com
2 months ago
Django

Top Python Features and How to Use Them! [2023]

A few years ago, programming languages were only known by software developers.These days, with the rise of new technologies, programming skills are needed for almost all non-developer jobs as well.
Reintech
3 months ago
Django

Creating an RSS Feed in Django

RSS (Really Simple Syndication) feeds are used to distribute frequently updated content.They allow users to easily stay informed by retrieving the latest content from their favorite websites.
GeeksforGeeks
3 months ago
Django

How to add RSS Feed and Sitemap to Django project? - GeeksforGeeks

This article is in continuation of Blog CMS Project in Django.Check this out here - Building Blog CMS (Content Management System) with Django
RSS (Really Simple Syndication) Feed
DEV Community
3 months ago
Django

How to create RSS feed with HTML content in Django

I am not feeling super comfortable writing this blog post because I don't know much about setting up a RSS feed with Django and including HTML in the content but when I was trying to do this for my own blog I could not find any up-to-date tutorial showing how to properly include HTML content.
Alone Djangonaut
4 years ago
Django

Django, Axios and CSRF token

Building a hybrid web app involves using Vue.js for the front end and Django for the back end.
Making AJAX calls using axios in Vue components can help in preventing page refresh and Vue app re-initialization. [ more ]
Alone Djangonaut
7 years ago
Django

Django admin template structure

Django admin template inheritance is essential for customizing the admin interface.
Understanding core HTML templates like base.html is key to modifying Django admin templates effectively. [ more ]
[ Load more ]