Programming

Programming

Exploring Various Coding Languages

Programming LanguagesSoftware DevelopmentAlgorithms and Data StructuresSoftware EngineeringWeb and Mobile Programming

مقالات این بخش

Pagination in Django: A Complete Guide to Paginator, Page Objects, ListView Pagination, and Function-Based Views

This article explains how pagination works in Django. It covers the Paginator class, Page object methods, how to paginate data in ListView, and how to use Paginator in function-based views. Practical examples and template snippets are included.

/persian/article-fa/pagination-in-django-a-complete-guide-to-paginator-page-objects-listview-pagination-and-function-based-views

Security in Django: A Complete Guide to XSS, CSRF, SQL Injection, Clickjacking, HTTPS, Host Validation, and More

This article provides a comprehensive overview of Django’s built‑in security features. It covers protection against XSS, CSRF, SQL injection, clickjacking, insecure cookies, HTTPS misconfiguration, Host header attacks, and referrer policy concerns. It also explains best practices for securing Django applications.

/persian/article-fa/security-in-django-a-complete-guide-to-xss-csrf-sql-injection-clickjacking-https-host-validation-and-more

Performance and Optimization in Django: A Complete Guide to Benchmarking, Caching, Laziness, and Efficient Code Design

This article provides a comprehensive overview of performance and optimization techniques in Django. It covers benchmarking, profiling tools, choosing the right abstraction level, caching strategies, understanding laziness, and how Django’s QuerySets benefit from delayed evaluation.

/persian/article-fa/performance-and-optimization-in-django-a-complete-guide-to-benchmarking-caching-laziness-and-efficient-code-design

Serializing and Deserializing Django Objects: A Complete Guide to Django’s Serialization Framework

This article explains Django’s serialization framework, including how to serialize and deserialize model instances, work with subsets of fields, handle inherited models, use different serialization formats (JSON, XML, YAML, JSONL), and understand how relational fields are represented. It also covers DeserializedObject behavior and common pitfalls.

/persian/article-fa/serializing-and-deserializing-django-objects-a-complete-guide-to-djangos-serialization-framework

Understanding Django Settings: Configuration, Environment Management, and Best Practices

This article provides a complete overview of Django’s settings system. It explains how settings files work, how to designate a settings module, how to use settings in your code, how to configure Django manually, how to secure sensitive settings, and how to work with custom default settings. It also covers the role of django.setup() for standalone scripts.

/persian/article-fa/understanding-django-settings-configuration-environment-management-and-best-practices

Django Signals: A Complete Guide to Listening, Connecting, Sending, and Managing Application Events

This article provides a comprehensive explanation of Django’s signal system—an event‑driven mechanism that allows decoupled applications to react to actions occurring elsewhere in the framework. It covers how to define receivers, connect signals, use decorators, handle specific senders, organize signal code, and follow best practices to avoid complexity.

/persian/article-fa/django-signals-a-complete-guide-to-listening-connecting-sending-and-managing-application-events

Django System Check Framework: A Complete Guide to Writing, Registering, Running, and Testing System Checks

This article explains Django’s System Check Framework—a powerful mechanism for detecting configuration issues, validating project structure, and ensuring code quality. It covers how checks are executed, how to write custom checks, how messages work, how to register and tag checks, how to extend checks for fields and models, and how to write both unit and integration tests for system checks.

/persian/article-fa/django-system-check-framework-a-complete-guide-to-writing-registering-running-and-testing-system-checks

Asynchronous Support in Django: A Complete Guide to Async Views, ORM, Middleware, Performance, and Safety

This article explains Django’s asynchronous (async) capabilities, including async views, ASGI support, middleware behavior, async ORM features, performance considerations, handling disconnects, and Django’s async safety protections. It also covers how to use sync_to_async(), async ORM methods, and how to safely run synchronous code in async environments.

/persian/article-fa/asynchronous-support-in-django-a-complete-guide-to-async-views-orm-middleware-performance-and-safety

Django Tasks Framework: A Complete Guide to Background Task Execution in Django 6.0

Django 6.0 introduces the Tasks framework, a built‑in system for defining and queuing background work outside the request–response cycle. This article explains how Tasks work, how to configure backends, how to define and enqueue tasks, how context works, and how to integrate third‑party worker systems for production environments.

/persian/article-fa/django-tasks-framework-a-complete-guide-to-background-task-execution-in-django-60