Skip to content

Commit

Permalink
Adds import line for silk profile decorator
Browse files Browse the repository at this point in the history
Addresses #172 & #180

Adds import line to help others know where the location of the silk profiler exists within the library.
  • Loading branch information
avelis authored Jun 12, 2017
1 parent f8f4fe2 commit bd387af
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,9 @@ manager for this purpose.
For example:

```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 bd387af

Please sign in to comment.