<commit_before>#Silk

*Silk has now moved to the django-silk organization and is looking for contributors - if you think you can help out, please get in touch!*

[![Gitter](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/django-silk/silk?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
[![TravisCI Build](https://img.shields.io/travis/django-silk/silk/master.svg)](https://travis-ci.org/django-silk/silk)
[![PyPI Download](https://img.shields.io/pypi/v/django-silk.svg)](https://pypi.python.org/pypi/django-silk)
[![PyPI Python Versions](https://img.shields.io/pypi/pyversions/django-silk.svg)](https://pypi.python.org/pypi/django-silk)

Silk is a live profiling and inspection tool for the Django framework. Silk intercepts and stores HTTP requests and database queries before presenting them in a user interface for further inspection:

<img src="https://raw.githubusercontent.com/django-silk/silk/master/screenshots/1.png" width="720px"/>

## Contents

* [Requirements](#requirements)
* [Installation](#installation)
* [Features](#features)
* [Configuration](#configuration)
    * [Authentication/Authorisation](#authentication-authorisation)
    * [Request/Response bodies](#request-response-bodies)
    * [Meta-Profiling](#meta-profiling)
    * [Recording a fraction of requests](#recording-a-fraction-of-requests)
    * [Clearing logged data](#clearing-logged-data)
* [Development](#development)

## Requirements

Silk has been tested with:

* Django: 1.7, 1.8, 1.9, 1.10[dev]
* Python: 2.7, 3.3, 3.4, 3.5


## Installation

Via pip into a virtualenv:

```bash
pip install django-silk
```

In `settings.py` add the following:

```python
# Django >= 1.10
MIDDLEWARE = [
    ...
    'silk.middleware.SilkyMiddleware',
    ...
]

# Django <= 1.9
MIDDLEWARE_CLASSES = (
    ...<commit_msg>Updates Django under requirements header<commit_after>#Silk

*Silk has now moved to the django-silk organization and is looking for contributors - if you think you can help out, please get in touch!*

[![Gitter](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/django-silk/silk?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
[![TravisCI Build](https://img.shields.io/travis/django-silk/silk/master.svg)](https://travis-ci.org/django-silk/silk)
[![PyPI Download](https://img.shields.io/pypi/v/django-silk.svg)](https://pypi.python.org/pypi/django-silk)
[![PyPI Python Versions](https://img.shields.io/pypi/pyversions/django-silk.svg)](https://pypi.python.org/pypi/django-silk)

Silk is a live profiling and inspection tool for the Django framework. Silk intercepts and stores HTTP requests and database queries before presenting them in a user interface for further inspection:

<img src="https://raw.githubusercontent.com/django-silk/silk/master/screenshots/1.png" width="720px"/>

## Contents

* [Requirements](#requirements)
* [Installation](#installation)
* [Features](#features)
* [Configuration](#configuration)
    * [Authentication/Authorisation](#authentication-authorisation)
    * [Request/Response bodies](#request-response-bodies)
    * [Meta-Profiling](#meta-profiling)
    * [Recording a fraction of requests](#recording-a-fraction-of-requests)
    * [Clearing logged data](#clearing-logged-data)
* [Development](#development)

## Requirements

Silk has been tested with:

* Django: 1.7, 1.8, 1.9, 1.10, 1.11
* Python: 2.7, 3.3, 3.4, 3.5


## Installation

Via pip into a virtualenv:

```bash
pip install django-silk
```

In `settings.py` add the following:

```python
# Django >= 1.10
MIDDLEWARE = [
    ...
    'silk.middleware.SilkyMiddleware',
    ...
]

# Django <= 1.9
MIDDLEWARE_CLASSES = (
    ...
{'fraction_non_alphanumeric': 0.15718157181571815, 'fraction_numerical': 0.015989159891598916, 'mean_word_length': 4.758190327613105, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 18, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4371918', 'n_tokens_mistral': 1386, 'n_tokens_neox': 1262, 'n_words': 253}