Best of DjangoJune 2025

  1. 1
    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.

  2. 2
    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.

  3. 3
    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.

  4. 4
    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.