Systems | Development | Analytics | API | Testing

Monitoring Django Query Performance with AppSignal

Slow database queries are really a pain. It’s easy to blame Django for taking ages to process a request, but the real issue may lie in an SQL query not doing what it should be. These performance degrading queries are often hiding in plain sight. By the time you notice them, they are already affecting your end users. AppSignal is an application performance monitoring (APM) tool with support for Python and Django out of the box.

Building a Django Chat App with WebSockets

Django is well known for being used to develop servers for HTTP connections and requests for applications. Unfortunately, when building Django chat app or any chat app that requires the connection to remain open for a two-way connection, using an HTTP connection is inefficient. WebSockets provide a means of opening a two-way connection between the client and the server so that all users connected to the open network can get related data in real time.

Improve Query Performance Using Python Django QuerySets

When developing web applications with Django, your interaction with the database impacts overall application performance. Django's Object-Relational Mapper (ORM) is a powerful ally that offers an intuitive way to work with your data through abstractions called QuerySets. These are your primary tools for fetching, filtering, creating, and managing data. In this article, we'll explore fundamental — yet highly effective — techniques to optimize your Django QuerySets.

Writing Comprehensive Integration Tests for Django Applications

Integration testing verifies that multiple components of your Django application work together correctly. Unlike writing unit tests that examine isolated functions or methods, the Django integration testing process validates entire user workflows, tests database transactions, and system interactions. Django's testing framework provides specialized tools for creating realistic automated test scenarios that mirror production environments.

Flask or Django: Which One Best Fits Your Python Project?

Choosing the right framework can significantly impact the success of a dev project. If you've chosen to use Python for your project's backend, you might need to decide between Flask and Django, the most popular web frameworks in the Python ecosystem. This article will help you determine which of the two best suits your specific needs by examining the key factors to consider. Before diving into the technicalities, let's briefly introduce both Flask and Django.

Django AWS deployment with Elastic Beanstalk

Almost every web application is built for end-users to view and use. The application deployment process is an important operation in software development because it allows software to fulfill its purpose. This tutorial is primarily for software companies and developers to aid them in deploying and scaling web applications and services using a platform that automatically handles deployment with ease. Therefore, in this tutorial, we will be deploying a Django application to AWS.

Handling spatial data in Django using PostGIS

As a Django developer, you might be tasked with a project that requires working with and manipulating spatial data. Spatial data refers to information that includes geographical or location-based attributes, representing the physical location and shape of objects on the Earth's surface or in three-dimensional space. Django provides a way to do that using PostGIS. PostGIS is an extension of PostgreSQL that adds support for spatial data.

Options for passwordless Django authentication

Passwordless Django authentication is gaining popularity as a secure and user-friendly alternative to traditional password-based authentication in Django applications. This article will explore various web authentication systems for implementing passwordless authentication in Django, highlighting their advantages, limitations, and considerations for choosing the right option.

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!