Topics

Django

About this topic: Articles tagged __TAG__

Showing 49 articles

Topics

Articles

Showing 49 articles

How-tos How to Log Messages to the Console in Django Learn how to log messages to the console in Django How-tos How to Convert a QuerySet to a JSON in Django Learn how to convert a QuerySet to a JSON in Django How-tos How to Integrate Ajax With Django in Python The purpose of this article is to demonstrate what is Ajax and how to integrate Ajax with Django and see how to send Ajax get and post requests from a browser and how to handle the … How-tos How to Slug in Django This demonstration aims to define a slug and how we can use the slug field to get a unique post with Django in Python. How-tos How to Filter Items From Query Set in Descending Order in Django In this explanation, learn how to filter out the items of the query set in descending order with the help of the order_by() method in Django. How-tos How to Avoid Creating Duplicate Objects in Django The main purpose of this article is to learn about the get_or_create() method in Django. It is a method used to avoid redundant fields in our query set. How-tos How to Use Post Request to Send Data to a Django Server In this explanation about Django, we have a short introduction about the post and get requests and how to implement the CSRF token with the post in Django. How-tos How to Upload Media in Django In this article, we have a short introduction about the media files and how we can operate media files in the Django project. How-tos How to Return JSON in Django In this discussion with us we have a look at a short introduction to JSON format and we discuss how to return data into JSON format with the help of JsonResponse class in Django. How-tos How to Create Objects in Django The purpose of this article is to explain what is a model and how to create objects using the create() method and see how to work the save() method in Django. How-tos How to Create Field for Multiple Choices in Django In this article, we will look at making a field for multiple choices and show you how to allow users to select multiple choices in Django. How-tos How to Check if Object Exists in Django In this explanation of the common issue you see how to check if an object exists in the model and you also learn how to handle exceptions to show the convenient error to the user. How-tos How to Download File in Django In this article we will learn how to create a website where the admin can upload a file and we also learn how to make the user download a file from a web page in Django. How-tos How to Use jQuery in a Django App This article discusses a short introduction to jQuery. This also tackles how to connect jQuery with a Django app. How-tos How to Use Dynamic URL Inside the Template in Django We will learn, with this explanation, how to use the url tag in templates and how to add links inside the templates in Django. How-tos How to Change Password in Django We will learn with this explanation about how we create a webpage for the user to change the password after login on the webpage in Django. How-tos How to Manipulate Raw Queries in Django We will learn, with this explanation, what the raw() method does and how we can manipulate raw queries. We will also learn how to inject SQL within our applications in Django. How-tos How to Import Settings in Django This article will teach us to import custom settings in the Django app. How-tos Django ALLOWED_HOSTS This article shows how to take your Django website, get it ready for public release, how to set ALLOWED_HOSTS and how to fix expected major issues during web deployment with … How-tos Django ArrayField In this article, we will learn to use the ArrayFields inside the Django database models. How-tos Django Bootstrap The main goal of this brief explanation is to learn how to add Bootstrap to the project in Django and we also have a look at some configurations about static asserts. How-tos Select_related Method in Django The article demonstrates what the query set is, how to work these queries and how we can utilize the select_related() method to filter the query of the related model in Django. How-tos Function of On_delete Parameter in Django Models Learn about the function of on_delete parameter in Django Models How-tos Meta Class in Django Models Learn about the role of the Meta Class in Django Models.

← All topics