Skip to content

Commit d94f6f3

Browse files
committed
Release v1.0.
1 parent a7c8d79 commit d94f6f3

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ I found a simple example on @dcramer's [slideshare](http://www.slideshare.net/ze
1111
$ pip install django-cprofile-middleware
1212
```
1313

14-
Then add ```django_cprofile_middleware.middleware.ProfilerMiddleware``` to the end your ```MIDDLEWARE_CLASSES```.
14+
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/).
1515

1616
For example:
1717

@@ -25,8 +25,6 @@ MIDDLEWARE_CLASSES = (
2525
)
2626
```
2727

28-
Again, add the profiler middleware to _the end_ of `MIDDLEWARE_CLASSES` so that it can include middleware operations in the profile.
29-
3028
## Running & Sorting Results
3129

3230
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```.

setup.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,15 @@
44
name = 'django-cprofile-middleware',
55
packages = ['django_cprofile_middleware'],
66
license = 'MIT',
7-
version = '0.5',
7+
version = '1.0',
88
description = 'Easily add cProfile profiling to django views.',
99
author = 'Omar Bohsali',
1010
author_email = '[email protected]',
1111
url = 'https://github.com/omarish/django-cprofile-middleware/',
12-
download_url = 'https://github.com/omarish/django-cprofile-middleware/tarball/0.4',
12+
download_url = 'https://github.com/omarish/django-cprofile-middleware/tarball/1.0',
1313
keywords = ['django','profiling','cProfile'],
14-
classifiers = [],
14+
classifiers = [
15+
"Framework :: Django",
16+
"License:: OSI Approved:: MIT License"
17+
],
1518
)

0 commit comments

Comments
 (0)