How to use Proxies in Selenium
Hi Guys,Ever needed to change your IP address or access region-restricted websites while using Selenium? or prevent your ip from being blocked from scraping from sites? Find out how to switch between proxies to on every call made with selenium Step 1 firstly lets get our proxies from proxyscrape. they provide up to 100 free […]
How To use Property In Django models
Hello Guys,In Django models, the @property decorator is used to define a read-only property for a model’s instance. This allows you to create a property that is calculated dynamically based on the model’s fields or other attributes Benefits Of the use of @property How to use @property In the case you have a contestant model […]
How To Use Different UserAgent In Selenium
Hi Guys,Using the same user agent consistently in Selenium for web scraping can result in bot detection, blocking, access restrictions, and more. In this lesson, we’ll explore how to dynamically rotate user agents every time Selenium opens the browser. Why is changing user agent useful? Lets Start Rather than maintaining an extensive list of user […]
How To Build Middleware in Django
Hello Guys,we are going to learn how to create middleware in Django. Middleware acts as an intermediary between different applications, services, or components in a distributed computing environment. Creating custom middleware helps in handling a lot of stuffs. But in this tutorial we are going to create a middleware that handles the url user sees […]
Using annotate To Extend Some Fields In Django
Hi Guys,Have you ever found it challenging to add custom fields to a model in your views for calculating specific values or incorporating additional attributes? In this lesson, we are going to look at how we can attach blog views to another Django model lets say this is our blog model lets also have our […]
How to Implement Global Responses in Django Using Context Processors
Hi Guys!,Have you encountered challenges when needing to use a consistent response or value across multiple pages in your Django project? Instead of duplicating code in each view, we can leverage the power of context processors to streamline our development process and reduce redundancy. In this discussion, we’ll explore the efficient use of context processors […]
Some Django Template Filters You Should Know
Hi Guys!Here are some template filters you can make use of in your code. In this whole project we will be using this django model as our reference in each field we use 1. Linebreaks This is used when you want show a text or a sentence as you have it stored in your django […]
How To Use Django bulk_update
Hi Guy!,In our previous lesson, we learnt how to use bulk_create in Django and saw the benefits of using it over our normal way of saving bulk stuffs. If you have not seen that kindly click here to read on it. In this, we are going to discuss how to use bulk_update in django! How […]
How To Use Django bulk_create
Hi Guy!,While Django is renowned for its speed and ease in web development, there are moments when performance becomes a concern. Accessing the database, a crucial aspect of web development, can be one of those time-consuming tasks. 🚀 #Django #WebDev In this, we are going to discuss ways for optimization; In this first part we […]
How To Add Custom Actions In Django Admin
Hi Guys,Have you ever encountered the challenge of needing to modify the boolean values of a list of objects or execute actions on multiple objects in django admin without the need to handle them individually? In this lesson, we’ll guide you through the process of creating custom actions in Django Admin, offering a solution to […]