Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
12 changes: 6 additions & 6 deletions profiler/templates/profiler/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">

{% load staticfiles %}
<!-- Le styles -->
<link href="{{ STATIC_URL }}profiler/bootstrap.css" rel="stylesheet">
<link href="{{ STATIC_URL }}profiler/profiler.css" rel="stylesheet">
<link href="{% static "profiler/bootstrap.css" %}" rel="stylesheet">
<link href="{% static "profiler/profiler.css" %}" rel="stylesheet">


<script src="{{ STATIC_URL }}profiler/jquery-1.7.2.min.js" type="text/javascript"></script>
<script src="{{ STATIC_URL }}profiler/jquery.tablesorter.min.js" type="text/javascript"></script>
<script src="{% static "profiler/jquery-1.7.2.min.js" %}" type="text/javascript"></script>
<script src="{% static "profiler/jquery.tablesorter.min.js" %}" type="text/javascript"></script>
<script src="http://d3js.org/d3.v3.min.js"></script>
</head>

Expand Down Expand Up @@ -44,7 +44,7 @@
{% endblock %}

</div> <!-- /container -->
<script src="{{ STATIC_URL }}profiler/profiler.js" type="text/javascript"></script>
<script src="{% static "profiler/profiler.js" %}" type="text/javascript"></script>

</body>
</html>