Want to boost your Django project's performance? This comprehensive guide covers database optimization, caching strategies, Django ORM query optimization, async programming, frontend performance techniques, load testing with LoadForge, multi-instance scaling, security considerations during performance optimization, and continuous monitoring and optimization.
TL;DR
Two Django performance guides arrive together, machine learning cracks 4Chan captchas, and pydantic-ai pairs Pydantic validation with large language models.
Articles & Tutorials
× 12This article introduces common techniques and best practices for optimizing Django project performance, including using APM tools for monitoring, django-silk for profiling, understanding QuerySet internals, optimizing database queries, tuning database settings, implementing caching, and async programming.
Emacs is an incredibly powerful editor. This article shows how to build an effective Python development environment with it, configuring various tools and plugins for code intelligence, linting and static analysis, debugging, and environment management.
The author's year-end review covers their work on LearnDjango website, video courses, book updates, tutorials/writing, Django Chat podcast, Django News weekly, and more.
4Chan's CAPTCHA verifies whether users are human or bots. The author trained a browser-based machine learning model that achieved 90% success rate in breaking it. The article covers data collection, model creation and training, plus real-world testing.
Ready-made solutions and large model frameworks can help you quickly develop generative AI projects, but they may become obstacles as versions evolve. This article proposes a 2-layer approach for developing RAG applications, creating maintainable solutions without relying on off-the-shelf components.
This tutorial shows how to build a small Flask app to find Pokemon TCG Pocket mobile game partners. It demonstrates how Flask can quickly turn simple ideas into web projects.
Open Database Connectivity (ODBC) has been the standard for database access since the 90s. How does this driver work, and what would implementing an ODBC driver in Python look like? The article implements a simple ODBC driver and PEP-249, plus mentions Python libraries that no longer depend on ODBC.
python-build-standalone provides working standalone Python distributions and has been downloaded over 70 million times by tools like uv, Rye, and Bazel. The project officially transfers to the Astral organization (developers of Ruff and uv) starting December 17th.
Textual creates lightweight, powerful text-based user interfaces. This article covers debugging TUI applications using textual-dev tools, including developer mode debugging and notification-based debugging.
The article discusses the complexity of HTTP cookies in web development, particularly differences in cookie handling across browsers and programming languages like Golang, PHP, Python, Ruby, and Rust.
Advent Calendars hide a small gift each day from December 1st to Christmas. In developer circles, annual challenges appear, and the author compiles them yearly. This year features 25 daily coding challenges.
Projects & Resources
× 12An intelligent interactive system for precise image editing with user-friendly interface, AI-powered suggestions, and precise local editing. (2K stars)
Enforces architectural rules in large Python projects, maintaining dependencies for cleaner, more maintainable, and modular project structure.
Convert any image or PDF to Markdown or JSON documents with ultra-high precision. Built with FastAPI API, uses Celery for async task processing, and Redis for caching OCR results. (1.4K stars)
Makes print debugging easier and provides basic benchmarking functionality. Originally forked from IceCream but almost completely rewritten with many new features.
Google's open-source library for quickly creating CLIs, helping develop and debug Python code and making conversion between Bash and Python easier. (27.2K stars)
Features colorized output, structured logging, timezone-aware timestamps, file log rotation, and function execution tracing, supporting any data type in details.
A generative AI template with features: LLMs, information extraction, chat, RAG, etc. Uses Python uv for package management, loguru for logging, Streamlit frontend and FastAPI backend.
Uses multiple AI agents for trading decisions, supporting market data collection and preprocessing, quantitative trading, risk management, and portfolio management.
Enables collaborative monitoring of various scripts running on different devices and processes in real-time through decentralized approach.
A desktop application that visually connects different Python functions/callables to generate flexible parameterized behaviors/data/applications/code snippets. (1.1K stars)
Pydantic team's open-source agent framework that eases the pain of building production-grade applications with generative AI. Uses Pydantic for validating structured and streaming responses, type-safe dependency injection system, integrated with Logfire. (2.7K stars)
Automate browser workflows using large models and computer vision to replace manual operations. Doesn't rely on DOM parsing and XPath, unaffected by website layout changes, supports operations on never-before-seen websites. (10.9K stars)