#Django

Create PDF files with Django & Weasyprint

In this article you’ll learn how to integrate WeasyPrint with Django to build a robust invoice-generating application. We walk through the installation, project setup, template design, view logic and PDF production, giving you a complete blueprint to deliver downloadable or printable invoices in your Django project.

Mohamed Nossirat
Create PDF files with Django & Weasyprint

Fast & Efficient Bulk Create with Django and PostgreSQL

Building scalable back‑ends requires smart data ingestion. This guide shows how to stream large API datasets into PostgreSQL with Django’s bulk_create and the database COPY command. It compares performance and memory use and explains why streaming is essential for handling remote, messy and big data

Mohamed Nossirat
Fast & Efficient Bulk Create with Django and PostgreSQL

Django & DRF Model Generic Auth Stuff

Tracking who created or updated a record is vital for auditing. This article shows how to automatically populate created_by and updated_by fields in Django REST Framework by leveraging HiddenFields, reducing boilerplate and improving data integrity

Mohamed Nossirat
Django & DRF Model Generic Auth Stuff

Integrate Django and Vite based Frontend

Want modern JavaScript without abandoning Django’s monolithic structure? This guide demonstrates how to use Vite to bundle Vue or React components inside a Django project, enabling hot‑module reloading and future‑proof asset management

Mohamed Nossirat
Integrate Django and Vite based Frontend

Django & Modern JS Frameworks Session Authentication

Django is one of the most popular backend web application frameworks that exists and it's written in Python. Vue.js is one of the most popular JavaScript tools for adding dynamic features to a web application.Django doesn't need Vue to run. Vue doesn't need Django to run. The combination gives developers an incredibly flexible and dynamic paradigm while also leveraging a number of the built-in benefits that each tool has.

Mohamed Nossirat
Django & Modern JS Frameworks Session Authentication

Integrating VueJS 2 into a Django

Integrating Vue into a Django project doesn’t require heavy tooling. This piece outlines a strategy where the Vue dev server handles local development while Django serves the built files in production, enabling gradual migration from a monolith to a microservice

Mohamed Nossirat
Integrating VueJS 2 into a Django

Django Rest Framework rich related serializer

Readable API responses shouldn’t compromise write operations. This article introduces a custom serializer field derived from DRF’s PrimaryKeyRelatedField that returns nested objects for reads while accepting primary keys for writes, yielding cleaner responses without sacrificing flexibility.

Mohamed Nossirat
Django Rest Framework rich related serializer