Systems | Development | Analytics | API | Testing

Django

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.

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!

How to dockerize a Django, Preact, and PostgreSQL Application

During my recent deep dive into new technologies, I found the classic issues of integrating numerous tech tools effectively. I've written about my experiences to save you the trouble I had. One essential component I've looked into is using Docker to implement containerization. While the initial setup takes a little longer, it significantly simplifies and optimizes your technological stack.

An Introduction to Testing with Django for Python

In a world of ever-changing technology, testing is an integral part of writing robust and reliable software. Tests verify that your code behaves as expected, make it easier to maintain and refactor code, and serve as documentation for your code. There are two widely used testing frameworks for testing Django applications: In this article, we will see how both work. Let's get started!

Django REST API Tutorial: The Ultimate Guide

Are you ready to start exploring the world of API development with Django? In this tutorial, we will begin an exploration of how to leverage Django together with the Django REST framework, a robust and versatile framework for creating efficient and scalable APIs. This guide is designed to provide you with a clear and structured approach to Django REST API, ensuring that both beginners and experienced developers can navigate and utilize this powerful tool with ease.

Options for passwordless authentication in Django apps

Passwordless authentication is gaining popularity as a secure and user-friendly alternative to traditional password-based authentication in Django applications. In this article, we will delve into three passwordless authentication methods: email-based authentication, authentication with OAuth, and authentication with magic links.