Skip to main content

Django View Timer

Project description


Profile execution time for django views


None of the following settings are mandatory


Enable/Disable profiler

Default value: True


Disregards execution time below threshold (in milliseconds)

Default value: 20


Set number of milliseconds for warnings

Default value: 300


Log Format

Default Value:

"View: {view}\tModule: {module}\tFunction: {function}\tExecution Time: {time} msecs"



Install using pip

pip install django_view_timer

in import

from django_view_timer.urls import (
   patterns as dvt_patterns,
   url as dvt_url

urlpatterns = patterns('',
   url(r'^$', index, name='index'),

dvt_urlpatterns = dvt_patterns('',
   dvt_url(r'dvt_fun_base_str$', 'djangoproject.views.fun_base_test_view', name='dvt_fb_str_view'),
   dvt_url(r'dvt_fun_base$', fun_base_test_view, name='dvt_fb_view'),
   dvt_url(r'dvt_class_base$', ClassBaseTestView.as_view(), name='dvt_cb_view'),

urlpatterns += dvt_urlpatterns

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-view-timer-0.2.tar.gz (3.7 kB view hashes)

Uploaded source

Built Distribution

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page