Skip to content

Commit

Permalink
Edited ReadMe.md to avoid UnicodeDevodeError
Browse files Browse the repository at this point in the history
Issue 43: jazzband#43
SilkyMiddleWare should be listed before GZipMiddleware
  • Loading branch information
brmc committed Nov 30, 2014
1 parent 00e3dcb commit 91ce48f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ INSTALLED_APPS = (

Note: The middleware is placement sensitive. If the middleware before `silk.middleware.SilkyMiddleware` returns from `process_request` then `SilkyMiddleware` will never get the chance to execute. Therefore you must ensure that any middleware placed before never returns anything from `process_request`. See the [django docs](https://docs.djangoproject.com/en/dev/topics/http/middleware/#process-request) for more information on this.

Note: If you're using `django.middleware.gzip.GZipMiddleware`, place that **before** `silk.middleware.SilkyMiddleware`, otherwise you'll get an encoding error.

To enable access to the user interface add the following to your `urls.py`:

```python
Expand Down

0 comments on commit 91ce48f

Please sign in to comment.