Best of Django2025

  1. 1
    Article
    Avatar of hnHacker News·29w

    Why we migrated from Python to Node.js

    A startup rewrote their backend from Python/Django to Node.js/Express one week after launch due to Python's async limitations. The team struggled with Django's incomplete async support, colored functions problem, and the need for constant sync/async conversions. Despite losing Django's ergonomic ORM, they gained 3x throughput, unified their codebase with their existing Node worker service, and improved code maintainability. The three-day migration was driven by concerns about scalability and code quality rather than immediate load issues.

  2. 2
    Article
    Avatar of nickjanetakisNick Janetakis·49w

    Switching pip to uv in a Dockerized Flask

    A practical guide to replacing pip with uv in Dockerized Python applications, showing how to achieve 10x faster package installation speeds. Covers migrating from requirements.txt to pyproject.toml, configuring Docker environment variables, and using uv commands for dependency management. Includes specific examples for Flask and Django projects with detailed Dockerfile modifications and shell scripts for managing dependencies.

  3. 3
    Article
    Avatar of lobstersLobsters·1y

    Django vs. FastAPI, An Honest Comparison

    The post compares Django and FastAPI, highlighting their strengths and weaknesses based on real-world experience. Django offers an 'all-batteries-included' approach with everything you need in one package, while FastAPI focuses more on flexibility and performance, requiring additional setup for many features. Django enforces a structured MVT architecture and has a more democratized governance model, whereas FastAPI offers more control and modern features like async support and type safety but relies heavily on external tools. Choosing between them depends on your specific project requirements and the type of skills you want to develop.

  4. 4
    Article
    Avatar of wpbeginnerWordPress Beginner·49w

    WordPress vs. Django: Which Is Better for Your Website?

    WordPress and Django CMS serve different audiences and use cases. WordPress excels in ease of use, making it ideal for bloggers, small businesses, and non-developers who want quick setup with extensive themes and plugins. Django CMS offers superior performance and security out-of-the-box but requires coding expertise and higher development costs. WordPress wins for content management, customization without coding, community support, and affordability. Django CMS is better for complex enterprise applications requiring custom development and high scalability. Most users should choose WordPress for its user-friendly approach, while Django CMS suits developers building sophisticated web applications.

  5. 5
    Article
    Avatar of hnHacker News·1y

    Modern JavaScript for Django Developers

    JavaScript is crucial for modern web applications and can be complex for Django developers. This guide helps navigate the JavaScript ecosystem, covering frameworks like React, Vue, and low-JavaScript tools like Alpine.js and HTMX. It provides a clear approach for integrating modern JavaScript into Django projects, offering practical examples and advice.

  6. 6
    Article
    Avatar of djangoDjango·27w

    Django 6.0 release candidate 1 released

    Django 6.0 release candidate 1 is now available for testing before the final release scheduled for December 3, 2025. This marks the string freeze phase and opens the call for translators to submit translations. Developers are encouraged to test the release candidate and report any bugs to help ensure a stable final release.

  7. 7
    Article
    Avatar of medium_jsMedium·48w

    10 Libraries for Django projects

    A curated list of 10 modern Python libraries that enhance Django development, including Python Dotenv for environment management, Django Ninja as an alternative to DRF, Pydantic for form validation, Python Social Auth for authentication, Pika for message queuing, HTMX for reactive frontends, Django Templates Partial and Django Cotton for better templating, Faker for test data generation, and Python Systemd for logging. The author emphasizes choosing more Pythonic libraries over traditional Django-specific solutions.

  8. 8
    Article
    Avatar of testdrivenTestDriven.io·48w

    Building a Multi-tenant App with Django

    A comprehensive guide to implementing multi-tenant architecture in Django using django-tenants and django-tenant-users packages. Covers three multi-tenancy approaches (isolated, semi-isolated, shared), with focus on the semi-isolated approach using PostgreSQL schemas. Includes practical implementation steps: setting up tenant models, configuring middleware, separating shared and tenant-specific apps, provisioning tenants, and managing user permissions across tenants. The tutorial transforms a single-tenant project management app into a multi-tenant SaaS application with isolated tenant data and shared public content.

  9. 9
    Article
    Avatar of djangoDjango·36w

    Django 6.0 alpha 1 released

    Django 6.0 alpha 1 has been released, marking the first stage of the 6.0 release cycle and feature freeze. The alpha version includes modern tools and design improvements detailed in the development release notes. The release schedule targets a beta in about a month, followed by a release candidate. This alpha is not intended for production use but allows developers to test new features and report bugs.

  10. 10
    Article
    Avatar of dockerDocker·1y

    Dockerize a Django App: Step-by-Step Guide for Beginners

    Learn how to containerize your Django web application using Docker through a detailed, step-by-step guide. This tutorial covers creating a Dockerfile, setting up Docker Compose, configuring environment settings, and optimizing your setup for production. Understand the benefits of Docker, such as ensuring reproducibility, easing collaboration between developers, and speeding up deployment processes.

  11. 11
    Article
    Avatar of allthingsopenAll Things Open·21w

    6 must-read Linux and open source tutorials of the year

    A curated roundup of six practical tutorials covering diverse open source topics: DDEV for unified local development across 26 frameworks, limitations of AI coding assistants, tldr-pages as a modern alternative to man pages, implementing OpenTelemetry observability in Django applications, FreeDOS 1.4's 30th anniversary release with retrocomputing features, and ten essential open source tools for everyday use. The collection spans modern development workflows, AI tooling critique, documentation improvements, application monitoring, and computing heritage preservation.

  12. 12
    Article
    Avatar of djangoDjango·1y

    Django Admin Theme Roundup 2025

    The Django admin interface, while powerful for rapid prototyping, can be enhanced visually with various themes. This roundup covers recently updated themes such as Dracula, Django Daisy, django-jazzmin, django-admin-kubi, django-jet-reboot, django-semantic-admin, Simple UI, Grapelli, django-admin-interface, and Unfold in 2025. Themes vary in their complexity of integration and the range of additional features they offer.

  13. 13
    Article
    Avatar of nickjanetakisNick Janetakis·1y

    Shrink Your Docker Images by ~50% with Multi-Stage Builds — Nick Janetakis

    Learn how to significantly reduce the size of Docker images using multi-stage builds. The post provides examples for Flask, Django, Rails, Node, and Phoenix, explaining the process of splitting build time and run-time dependencies. By organizing multi-stage builds, you can create more efficient, smaller, and maintainable Docker images.

  14. 14
    Article
    Avatar of circleCircleCI·1y

    CI/CD for Python Django development

    Effective CI/CD automation is crucial for developing Django applications quickly without compromising security and performance. CI/CD pipelines help in reducing manual efforts, ensuring consistent environments, accelerating iterations, and preventing production issues. Key challenges for Django teams include environment inconsistencies, testing complexity, and static file handling. Tools like pip, Poetry, pytest, Selenium, and CircleCI aid in managing dependencies, automating testing, and deployment, ensuring faster and more reliable development cycles.

  15. 15
    Article
    Avatar of freecodecampfreeCodeCamp·1y

    How to Use Django Signals in Your Projects

    Django signals help in keeping your code clean and organized by connecting different parts of your app without intertwining them. They are great for handling events like user registrations, email updates, and order placements. Signals work by sending notifications when an event occurs, which other parts of the app can listen for and respond to. The post explains how to use Django's built-in signals and create custom ones while also highlighting when not to use signals.

  16. 16
    Article
    Avatar of freecodecampfreeCodeCamp·1y

    How to Enable CORS in Django

    Learn how to overcome the 'blocked by CORS policy' error when connecting a frontend app to a Django backend. This guide covers the installation and configuration of the django-cors-headers package, setting up allowed origins, and addressing common errors. Essential tips for secure CORS implementation in both development and production environments are also included.

  17. 17
    Article
    Avatar of hnHacker News·1y

    uv overtakes Poetry

    uv has surpassed Poetry as the second most popular package installer for Wagtail users, following pip. The shift in usage is likely influenced by more than just new users. Wagtail needs to ensure compatibility with uv and update its documentation to reflect this change, given the evolving expectations of Python developers.

  18. 18
    Article
    Avatar of djangoDjango·21w

    DSF member of the month - Clifford Gama

    Clifford Gama is featured as DSF member of the month for December 2025. He has contributed over 5 merged PRs to Django core and serves on the Triage and Review Team. The interview covers his journey from discovering Django through CS50 and its comprehensive documentation, his current work optimizing PDF generation with WeasyPrint, and his path to becoming a contributor. He emphasizes the value of code review and triage work, highlighting how the Django community's collaborative approach and high standards create excellent learning opportunities. Clifford shares his appreciation for Django's ORM, documentation, and welcoming community, particularly through Djangonaut Space.

  19. 19
    Article
    Avatar of hnHacker News·44w

    lucianmarin/subreply: Tiny, but mighty social network.

    Subreply is a minimalist social network built with Python and Django, emphasizing simplicity and performance. The project follows a philosophy of easy-to-read code without unnecessary abstractions, targeting response times of 50ms or lower. Setup involves installing Python dependencies, running migrations, configuring cryptographic signatures, and launching with Gunicorn.

  20. 20
    Article
    Avatar of collectionsCollections·1y

    Django Crash Course: Building Web Applications with Python

    Learn to build dynamic web applications using Django, a Python-based framework, with this guide. It covers setting up the development environment, creating your first web application, and understanding key concepts such as models, views, templates, URL mapping, and database migrations. Gain skills to develop efficient and secure web solutions with free resources from platforms like freeCodeCamp.org.

  21. 21
    Article
    Avatar of testdrivenTestDriven.io·1y

    Database Indexing in Django

    Database indexing improves data retrieval speed and optimizes query performance in relational databases. In Django applications, using indexes can enhance responsiveness, crucial for managing large datasets. This guide covers the fundamentals of indexing, its pros and cons, and its practical application in Django, showcasing examples with primary, unique, composite, and full-text indexes. The included sample project demonstrates the impact of indexes on query performance, highlighting best practices for implementation.

  22. 22
    Article
    Avatar of lpythonLearn Python·1y

    Django @ 20!! 🚀

    Django celebrates its 20th anniversary. The post encourages readers to share their favorite features of this popular web framework.

  23. 23
    Article
    Avatar of testdrivenTestDriven.io·1y

    Running Background Tasks from Django Admin with Celery

    Learn how to run background tasks directly from Django admin using Celery. The tutorial covers setting up a dockerized Django project, integrating Celery and Redis, defining custom Celery tasks, and triggering them via Django views and admin. Additionally, it guides you through monitoring task status in near real time using Celery's result backend.

  24. 24
    Video
    Avatar of youtubeYouTube·1y

    Deploy Django 5.2 from Scratch. Complete Guide.

    Learn how to deploy a Django project using Railway with a step-by-step guide. The post walks you through creating a virtual environment, installing Django 5.2, using the Cursor text editor, setting up a local GitHub repository, and managing environment variables for secure deployments. It also covers Git basics, GitHub setup, and the use of GitHub Actions for continuous integration.