diff --git a/README.rst b/README.rst index c4d494b..dde126a 100644 --- a/README.rst +++ b/README.rst @@ -11,6 +11,11 @@ Installation 2. Add `'profiler'` app to `INSTALLED_APPS` 3. Add `'profiler.middleware.ProfilerMiddleware'` to `MIDDLEWARE_CLASSES` 4. Optionally add `'profiler.middleware.StatProfMiddleware'` to `MIDDLEWARE_CLASSES` to enable Python code statistical profiling (using statprof_). WARNING: this is an experimental feature, beware of possible incorrect output. + +if you get ``ValueError: signal only works in main Thread`` try this workaround: + + $ ./manage.py runserver --noreload --nothreading + 5. Add `url(r'^profiler/', include('profiler.urls'))` to your urlconf .. _statprof: https://github.com/bos/statprof.py diff --git a/profiler/templates/profiler/base.html b/profiler/templates/profiler/base.html index 953bcee..8495569 100644 --- a/profiler/templates/profiler/base.html +++ b/profiler/templates/profiler/base.html @@ -6,14 +6,14 @@ - + {% load staticfiles %} - - + + - - + + @@ -44,7 +44,7 @@ {% endblock %} - +