Skip to content

Commit

Permalink
Release v1.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
omarish committed Oct 18, 2017
1 parent a7c8d79 commit d94f6f3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ I found a simple example on @dcramer's [slideshare](http://www.slideshare.net/ze
$ pip install django-cprofile-middleware
```

Then add ```django_cprofile_middleware.middleware.ProfilerMiddleware``` to the end your ```MIDDLEWARE_CLASSES```.
Then add ```django_cprofile_middleware.middleware.ProfilerMiddleware``` to the end your ```MIDDLEWARE``` in settings.py. This option was called ```MIDDLEWARE_CLASSES``` in versions of Django before [1.10](https://docs.djangoproject.com/en/1.10/topics/http/middleware/).

For example:

Expand All @@ -25,8 +25,6 @@ MIDDLEWARE_CLASSES = (
)
```

Again, add the profiler middleware to _the end_ of `MIDDLEWARE_CLASSES` so that it can include middleware operations in the profile.

## Running & Sorting Results

Once you've installed it, log in as a user who has staff privileges and add ```?prof``` to any URL to see the profiler's stats. For example to see profile stats for ```http://localhost:8000/foo/```, visit ```http://localhost:8000/foo/?prof```.
Expand Down
9 changes: 6 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,15 @@
name = 'django-cprofile-middleware',
packages = ['django_cprofile_middleware'],
license = 'MIT',
version = '0.5',
version = '1.0',
description = 'Easily add cProfile profiling to django views.',
author = 'Omar Bohsali',
author_email = 'omar.bohsali@gmail.com',
url = 'https://github.com/omarish/django-cprofile-middleware/',
download_url = 'https://github.com/omarish/django-cprofile-middleware/tarball/0.4',
download_url = 'https://github.com/omarish/django-cprofile-middleware/tarball/1.0',
keywords = ['django','profiling','cProfile'],
classifiers = [],
classifiers = [
"Framework :: Django",
"License:: OSI Approved:: MIT License"
],
)

0 comments on commit d94f6f3

Please sign in to comment.