Quick Start¶
Silk is installed like any other Django app.
First install via pip:
pip install django-silk
Add the following to your settings.py
:
MIDDLEWARE_CLASSES = (
...
'silk.middleware.SilkyMiddleware',
...
)
INSTALLED_APPS = (
...
'silk'
)
Add the following to your urls.py
:
urlpatterns += patterns('', url(r'^silk', include('silk.urls', namespace='silk')))
Run syncdb
to create Silk’s database tables:
python manage.py syncdb
And voila! Silk will begin intercepting requests and queries which you can inspect by visiting /silk/
Other Installation Options¶
You can download a release from github and then install using pip:
pip install django-silk-<version>.tar.gz
You can also install directly from the github repo but please note that this version is not guaranteed to be working:
pip install -e git+https://github.com/mtford90/silk.git#egg=silk