
Security News
Deno 2.4 Brings Back deno bundle, Improves Dependency Management and Observability
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.
Profile execution time for django views
.. image:: https://img.shields.io/pypi/v/django-view-timer.svg
None of the following settings are mandatory
|
DJANGO_VIEW_TIMER_ENABLED
Enable/Disable profiler
Default value: True
|
DJANGO_VIEW_TIMER_MIN_THRESHOLD
Disregards execution time below threshold (in milliseconds)
Default value: 20
|
DJANGO_VIEW_TIMER_WARNING_LEVEL
Set number of milliseconds for warnings
Default value: 300
|
DJANGO_VIEW_TIMER_LOG_FORMAT
Log Format
Default Value: ::
"View: {view}\tModule: {module}\tFunction: {function}\tExecution Time: {time} msecs"
.. image:: https://raw.githubusercontent.com/aledista/django-view-timer/master/screenshot.png
Install using pip
::
pip install django_view_timer
in urls.py 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
FAQs
Django View Timer
We found that django-view-timer demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.
Security News
CVEForecast.org uses machine learning to project a record-breaking surge in vulnerability disclosures in 2025.
Security News
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.