How to use Raw SQL Queries in Django

Django Web Framework Tutorials

Django, high-level Python web framework, offers powerful Object-Relational Mapping (ORM) layer for database interaction. However there are scenarios where you might need to execute raw SQL queries directly. In this blog post, we’ll explore how to use raw SQL queries in Django when and why you might need them, and best practices to ensure security … Read more

Getting the Full Absolute URL with Domain in Django: A Practical Guide

Django Web Framework Tutorials

In Django, its common to need the full absolute URL (including the domain) for various purposes, such as generating links, sending emails with clickable links or building sitemaps. In this blog post, wwill explore different methods to obtain the absolute URL in Django, along with practical examples. Using the HttpRequest Object One straightforward way to … Read more