Best of DjangoAugust 2024

  1. 1
    Article
    Avatar of hnHacker News·2y

    nfoert/cardie: An open source business card designer and sharing platform

    Cardie is an open-source platform for designing and sharing business cards. Users can create unlimited cards, get analytics, edit cards, and control privacy settings. The platform is in open alpha and subject to changes. Instructions for setting up the application locally, including creating a Python virtual environment, setting up a Django superuser, and configuring environment variables, are provided.

  2. 2
    Article
    Avatar of rpythonReal Python·2y

    Python News Roundup: August 2024 – Real Python

    Python 3.13 has reached its fourth beta release and the first release candidate phase, bringing enhanced features like an improved REPL. The Python Software Foundation announced new Board members and welcomed new staff. PyOhio 2024 showcased keynotes from prominent Python community members. Essential Python projects like Django, Pillow, pytest, Pydantic, and Sphinx also rolled out new versions. PEP 751 proposed a new file format for Python dependencies to enable reproducible installations.

  3. 3
    Article
    Avatar of adamjAdam Johnson·2y

    Django: avoid “useless use of .all()”

    Using the `.all()` method in Django's ORM is often unnecessary and can lead to slightly more code and performance overhead. The manager `Digger.objects` already refers to all `Digger` objects, making `.all()` redundant in most cases. Appropriate use cases for `.all()` include creating an all-inclusive queryset for future operations and confirming deletions of entire tables.

  4. 4
    Article
    Avatar of djangonewsDjango News·2y

    Django 5.2 News

    Kojo Idrissa received the PSF Community Service Award, and Adam Johnson along with Paolo Melchiorre were announced as PSF Fellows for Q1 2024. Key updates include Django tests now supported in the VS Code Python extension and significant changes in Django 5.2 like a new production warning system and stack frame improvements. Natalia Bidart will keynote DjangoCon US 2024, and Django 5.1 has been successfully released with contributions from several first-time contributors.

  5. 5
    Article
    Avatar of appsignalAppSignal·2y

    Build a One-Product Shop With the Python Django Framework and Htmx

    This guide explains how to build a one-product e-commerce website using Django, htmx, and Stripe. It covers the setup of a Django project, creation of views and templates, and basic product ordering with form handling using htmx. The upcoming second part will tackle order processing with Stripe, database integration, and user notifications.

  6. 6
    Video
    Avatar of veryacademyVery Academy·2y

    Building Docker Networks | Network Types | IP Addressing

    The post provides a comprehensive guide on Docker networking, starting with fundamental concepts like localhost, loopback addresses, and network ports. It explains how to interact with Docker containers via network interfaces and port mappings. The tutorial also covers default network settings, different network types in Docker (bridge, host, overlay, none), and DNS in Docker environments. Finally, it illustrates how to create custom networks and assign static IP addresses to containers, emphasizing the importance of understanding IP addressing for effective Docker network management.

  7. 7
    Video
    Avatar of veryacademyVery Academy·2y

    Docker HealthCheck Instruction

    This post guides you through setting up health checks for a PostgreSQL database in a Docker container using Django. It explains how to configure health checks, interpret status codes from the 'pg_isready' command, and integrate these checks into your Docker setup. Parameters such as interval, timeout, retries, and start period for health checks are configured to ensure your PostgreSQL database is ready before proceeding with Django model migrations.