Skip to content

Commit

Permalink
Adds import line for decorator example
Browse files Browse the repository at this point in the history
Helps #172 & #180

Adds import line with the location of the silk_profile decorator.
  • Loading branch information
avelis authored Jun 12, 2017
1 parent bd387af commit 01bacc2
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 @@ -194,6 +194,8 @@ Silk profiling not only provides execution time, but also collects SQL queries e
The silk decorator can be applied to both functions and methods

```python
from silk.profiling.profiler import silk_profile

@silk_profile(name='View Blog Post')
def post(request, post_id):
p = Post.objects.get(pk=post_id)
Expand Down

0 comments on commit 01bacc2

Please sign in to comment.