This article is a follow-up to our previous tutorial on how to create a custom Log Handler for sending specific logs as Slack messages. Let’s say you have implemented a SlackHandler, and at some point in your code you end up performing an HTTP request against the slack API. Usually,
There are many developer options available for error tracking but some can be quite expensive, or have too many configurations and require a lot of maintenance. In this blog post, I’ll introduce you to a simple approach for small to medium teams to keep track of any exceptions raised in
When you register a model in your Django admin page it automatically matches each of the model’s fields to a widget so you can input data and manage instances of the models easily from the Django admin panel. Most of the time the default widgets are enough but in some
A Python virtual environment is an important tool for developers when separating project dependencies in isolated environments. If working locally on several Python projects, developers may need to use different Python versions on each. By doing this, they will be able to install different packages and have different versions of
Django and Flask are two of the most popular Python web frameworks. In this article, we’re going to review their main strengths and weaknesses to help you decide which one is a better fit for your project. Django Approach Django opts for an all batteries-included approach. From a powerful ORM to an authentication
Open Source software (OSS) is a key initiative for developers at Rootstrap to stay sharp and engage with the developer community. In this blog post, I’m going to talk about a particular project named Django Drip Campaigns and the process of publishing it as a PyPI package. Pypi (Python Package Index) is
I recently finished working on a small project in Django when I realized that it could be improved greatly by adding a single feature. There were a few functionalities depending directly on constant values defined in the settings file but given their nature, it seemed like a good idea to be able
Oftentimes, we are surprised by the accuracy of recommendations on what to buy on Amazon, watch on Netflix, or listen on Spotify. We feel that somehow these companies know how our brain works and monetizing this magical guessing game. They have a deep foundation on behavioral sciences, and our job
The Django framework saves time and effort and helps to create apps and REST APIs with maintainable code. This post gives some practical examples of what to do and what not to do when you code in Python using Django. In this post, I’ll explain why good code structure and
Data quality is a broad concept with multiple dimensions. I detail that information in another introductory article. This tutorial explores a real-life example. We identify what we want to improve, create the code to achieve our goals, and wrap up with some comments about things that can happen in real-life situations. To follow along, you need a basic understanding of Python.
Python Data Analysis Library (pandas) is an open-source, BSD-licensed library that provides high-performance, easy-to-use data structures and data analysis tools for the Python programming language.
You can install pandas by entering this code in a command line: python3 -m pip install — upgrade pandas.