Django Middleware: Tips, Tricks and Examples
Learn how to use Django Middleware to improve your app's performance and security. Includes examples and best practices.
Ideas you can put to work
Explore software, AI, and the systems behind everyday applications.
Practical explanations, examples, and things to try.
Learn how to use Django Middleware to improve your app's performance and security. Includes examples and best practices.
Learn how to wrap Boto3, the AWS SDK for Python, to optimize performance and add custom functionality. Tips, examples and best practices to boost your skills.
Learn how to use Boto3, the AWS SDK for Python, to interact with AWS services. From clients to resources to wrappers, tips and examples to boost your skills.
Learn how to improve the speed of Python requests with connection pooling, async programming, compression, caching, and keep-alive. Boost the performance of your application now.
Learn how to enhance security with TOTP, a time-based one-time password algorithm. Understand its implementation, potential vulnerabilities, and best practices.
Learn the best practices and checklist for deploying a Django application to production. Includes tips on web servers, databases, caching, security, and more.
Learn how to efficiently run dry tests in Django using DRY principle and factory libraries like factory_boy and model_mommy. Optimize your testing process and ensure the reliability of your code with examples and tips provided in this blog post.
Learn how to run dry tests in Django using flags, libraries, and third-party tools. Optimize your testing process and ensure the reliability of your code.
Get a comprehensive guide on how to streamline CAS enrollment with AWS CloudFormation & boto3, automate resource provisioning and manage permissions easily.
Learn how to automate CAS enrollment with AWS CloudFormation and check permissions using boto3 for efficient resource provisioning and management.
Learn how to use the OpenAI API to build intelligent apps using the ChatGPT model in a developer's guide. A hands-on tutorial for integrating AI in projects
The OpenAI API is a cloud-based platform that allows developers to access and use the company's powerful AI models, including the ChatGPT model.
The OpenAI library provides a simple and convenient way to interact with the ChatGPT model through the OpenAI API.
Some rules of programming which you should always take care.
Python 3.11 is between 10-60% faster than Python 3.10. On average, we measured a 1.25x speedup on the standard benchmark suite.
drf-spectacular provides as its tagline suggests sane and flexible OpenAPI 3 schema generation for Django REST framework.
Django comes with a set of template filters to add a "human touch" to data. It is used to translate numbers and dates into a human readable format.
Django comes with an optional redirects application. It lets you store redirects in a database and handles the redirecting for you. It uses the HTTP response status code 301 Moved Permanently by default.
A flatpage is an object with a URL, title and content. Use it for one-off, special-case pages, such as “About” or “Privacy Policy” pages, that you want to store in a database but for which you don’t want to develop a custom Django application.