Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add optional django-silk #1829

Merged
merged 1 commit into from
Apr 21, 2022
Merged

Add optional django-silk #1829

merged 1 commit into from
Apr 21, 2022

Conversation

jwhitlock
Copy link
Member

Silk is a live profiling and inspection tool for Django, suitable for local development. It is disabled when DEBUG=False. It is also disabled when running tests, since it adds database queries for writing profile data to the database, using the mechanism suggested at pytest-dev/pytest#9502.

This is based on https://gist.github.com/groovecoder/5d2963d753cdfa690507a415b565dbaa

To use it, you need to manually install silk:

pip install django-silk

After a runserver restart, it will be detected and enabled in Django settings.

This replaces PR #1809, which was on my fork so CI didn't run.

Silk is a live profiling and inspection tool for Django, suitable for
local development. It is disabled when DEBUG=False. It is also disabled
when running tests, since it adds database queries for writing profile
data to the database.
@groovecoder groovecoder merged commit a423a22 into main Apr 21, 2022
@groovecoder groovecoder deleted the add-silk branch April 21, 2022 18:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants