---
title: "Python on Linux"
slug: "prefix-python-on-linux"
description: "Boost your Python app's performance with Prefix! Download, install & configure Stackify Python Profiler easily. See requests in Prefix & optimize your app now!"
updated: 2021-09-13T21:08:24Z
published: 2021-09-13T21:08:24Z
---

> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stackify.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Python on Linux

Prerequisites:

          

- [Supported Python Technologies](https://docs.stackify.com/docs/supported-python-technologies)  

*Since Prefix and Retrace share the same modules/profiler, the supported frameworks between the two products will be the same in most cases.*

### 1. Download and install the Prefix installation file:

Check out the [Getting Started](https://docs.stackify.com/v1/docs/prefix-getting-started) Prefix page to download and install Prefix on your workstation.

### 2. Get the latest Stackify Python Profiler for Prefix:

Install the Stackify Python APM agent using **pip**:

```
$ pip install stackify-python-apm
```

You may install your stackify-python-apm by adding it to your project's `requirements.txt` file.

### 3. Configure the Application to use the Profiler with Prefix Enabled:

#### Django

- Add `stackifyapm.contrib.django` to `INSTALLED_APPS` in your `settings.py`:

```
INSTALLED_APPS = [  
            ... 
            'stackifyapm.contrib.django',
            ...
     ]
```

- Add our tracing middleware to `MIDDLEWARE` in your `settings.py`:

```
MIDDLEWARE = [
            ...
            'stackifyapm.contrib.django.middleware.TracingMiddleware', 
            ...
     ]
```

- Customize **Application Name** and **Environment Name** in your settings.py file
- Add `PREFIX_ENABLED = True`  to the **settings.py** file.

```
APPLICATION_NAME = 'Python Application'
ENVIRONMENT = 'Production'
PREFIX_ENABLED = True
```

---

### 4. Verify application requests show up in Prefix
