<commit_before>{{{
  "title": "Deploying a Python Application",
  "date": "03-07-2016",
  "author": "<NAME>",
  "attachments": [
  {
    "file_name": "Python Django Sample",
    "url": "/attachments/af-python-django-sample.tar.xz",
    "type": "application/x-xz"
  }],
  "related-products" : [],
  "contentIsHTML": false
}}}

### Audience
Application Developers

#### Overview
AppFog includes the Cloud Foundry [Python buildpack](https://github.com/cloudfoundry/python-buildpack) by default. This enables the deployment of [Python](https://www.python.org/) applications using any one of multiple runtime versions. To learn more, please read the Cloud Foundry Python buildpack [README](https://github.com/cloudfoundry/python-buildpack/blob/master/README.md).

This article is going to focus on deploying a sample Python application. It uses the popular [Django](https://www.djangoproject.com/) framework for creating web applications in Python.

### Pre-Requisites
#### Installing Python
To develop using Python you must have the its [runtime interpreter](https://wiki.python.org/moin/BeginnersGuide/Download) installed. You should choose a version supported in the buildpack's [releases page](https://github.com/cloudfoundry/python-buildpack/releases).

You will also need [Pip](https://pip.pypa.io/en/stable/installing/) installed in your development environment.

#### Downloading Simple Example Application
The sample app used in this article is [attached](/attachments/af-python-django-sample.tar.xz).
<commit_msg>Fixed attachment link.<commit_after>{{{
  "title": "Deploying a Python Application",
  "date": "03-07-2016",
  "author": "<NAME>",
  "attachments": [
  {
    "file_name": "Python Django Sample",
    "url": "../attachments/af-python-django-sample.tar.xz",
    "type": "application/x-xz"
  }],
  "related-products" : [],
  "contentIsHTML": false
}}}

### Audience
Application Developers

#### Overview
AppFog includes the Cloud Foundry [Python buildpack](https://github.com/cloudfoundry/python-buildpack) by default. This enables the deployment of [Python](https://www.python.org/) applications using any one of multiple runtime versions. To learn more, please read the Cloud Foundry Python buildpack [README](https://github.com/cloudfoundry/python-buildpack/blob/master/README.md).

This article is going to focus on deploying a sample Python application. It uses the popular [Django](https://www.djangoproject.com/) framework for creating web applications in Python.

### Pre-Requisites
#### Installing Python
To develop using Python you must have the its [runtime interpreter](https://wiki.python.org/moin/BeginnersGuide/Download) installed. You should choose a version supported in the buildpack's [releases page](https://github.com/cloudfoundry/python-buildpack/releases).

You will also need [Pip](https://pip.pypa.io/en/stable/installing/) installed in your development environment.

#### Downloading Simple Example Application
The sample app used in this article is [attached](../attachments/af-python-django-sample.tar.xz).

{'fraction_non_alphanumeric': 0.1321744834371925, 'fraction_numerical': 0.005247622171203673, 'mean_word_length': 4.888030888030888, 'pattern_counts': {'":': 16, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 14, 'lorem ipsum': 0, 'www.': 4, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2213284', 'n_tokens_mistral': 897, 'n_tokens_neox': 846, 'n_words': 268}