Posts from Django

How to Get the User IP Address using Django

How to Get the User IP Address using Django

By Anand Jaiswal | March 12, 2022

In this tutorial, we will learn how to get the user’s IP address using Django. To understand this let’s learn about IP-Address. Find IP Address in Django The IP address is the address that distinguishes one network on the internet from another. IP Address or Internet Protocol Address. It is a unique identifier that is […] Read More

Redirect in Django

Redirect in Django

By Khushi Aswani | March 11, 2022

Django is such an amazing framework! Everything built-in is for a reason and every time fascinates users to do even more and use a compact approach. You won’t believe redirecting is damn easy in Django. You can do it using a single word. You heard it right! A single word, not even a line or […] Read More

How to store a dictionary on a Django Model

By Khushi Aswani

This tutorial is all about how to use a dictionary model in Django which is easy and also helpful when you want to work with a dictionary. You might be thinking what is the task, i.... Read More

How to enable CORS headers in Django

By Anand Jaiswal

In this, we will discuss how to enable CORS headers in Django. What is CORS? CORS stands for Cross-Origin Resource Sharing. CORS is a mechanism that enables interaction with resour.... Read More

Exclude one or multiple objects from Django Queryset

By Anand Jaiswal

In this tutorial, we will learn how to exclude one or multiple objects from Django Queryset. To learn more about Querysets click on the link given below:- What is Django QuerySet a.... Read More

Upload a file in Django

Upload a file in Django

By Khushi Aswani | March 6, 2022

In this tutorial, we will be talking about how to upload a file in Django. The question is why we need to do so when we already have CharField(), IntegerField(), TextField() but sometimes we need to upload files like an image or a pdf or some file in some other format like if you want […] Read More

Combine two querysets in Django

By Khushi Aswani

Sometimes, we might need to combine two querysets in Django even from different models to execute a certain condition. In this tutorial, we will try to combine queryset using Djang.... Read More

Show a PDF file in Django instead of downloading

By Khushi Aswani

In this tutorial, we will be learning how to show a PDF file in Django instead of downloading. It is very simple if you know even a bit about Django. So lets start- Start an app na.... Read More

Related Posts