Systems | Development | Analytics | API | Testing

Django

Find and Fix N+1 Queries in Django Using AppSignal

In this article, you'll learn about N+1 queries, how to detect them with AppSignal, and how to fix them to speed up your Django apps significantly. We'll start with the theoretical aspects and then move on to practical examples. The practical examples will mirror scenarios you might encounter in a production environment. Let's get started!

Why choose Python and Django for building a custom eCcommerce website?

With practically everything moving online now and consumers making snap decisions about what to buy and what not- can you really afford to not have an ecommerce website for your business? Well, we don’t think so! According to Tech Jury, 90% of online experiences begin with a search engine. Yes, that’s true! This basically means that if your business doesn’t have a website, you’re losing out on a lot of potential consumers.

Event-Driven Architectures with Django

Imagine you're building an e-commerce application. You want to use Django and bring all the benefits of that framework. But there are issues. Django's service-oriented architecture doesn’t play well with the event-driven nature of what you need to build. You need to automatically send a welcome email when a new user registers, instantly update inventory levels when an item is purchased, and notify users when their orders are shipped.

Building AI With Ollama and Django

If you’re not building with AI, are you even building these days? Sometimes, it seems not. AI has become such an integral part of workflows throughout many tools that a clear understanding of integrating it into your product and framework is critical. Django is such a framework that powers thousands of products across the web: Instagram, Pinterest, and Mozilla are all services built on Django.

Navigating Django Logging: From Basics to Best Practices

Django is designed to be secure by default, which means that its got a number of featured out of the box to protect against common Web vulnerabilities, including SQL injection, cross-site scripting (XSS), and cross-site request forgery (CSRF). Its extensive documentation, active community, and strong ecosystem of reusable apps and libraries make it a common choice for developers looking to create scalable and maintainable Web applications.

Understanding Multi-Tenancy: Core Logic and High-Level Code with Django

Multi-tenant applications are crucial for efficiently serving multiple clients from a single shared instance, offering cost savings, scalability, and simplified maintenance. Such applications can allow hospitals and clinics to manage patient records securely, can enable financial institutions to provide personalized banking services, and can help streamline inventory management and customer relationship management across multiple stores.

Testing and Debugging in Django: Advanced Techniques and Tools

Django is one of the leading Python frameworks used to create full-stack web applications. In this comprehensive guide, you will explore the intricacies of testing and debugging within the Django framework, focusing on advanced methodologies and essential tools. Beginning with the fundamentals of Django unit and integration testing, you will delve into advanced techniques such as mocking, testing middleware, and profiling for optimal performance.

Authentication and Authorization Using Middleware in Django

Django is a “batteries-included” framework. It has a wide array of built-in features that handle common web development tasks: URL routing, template engine, object-relational mapping (ORM), and database schema migrations. This makes it highly efficient for rapid development, allowing developers to focus on building their applications' unique aspects without reinventing basic functionalities.

Track Errors in Your Python Django Application with AppSignal

In this post, we will specifically look at using AppSignal to track errors in a Django application. We'll first create a Django project, install AppSignal, introduce some faulty code, and then use the AppSignal Errors dashboard to debug and resolve errors. Let's get started!