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

Number of queries and time showing as 0 #174

Closed
unformatt opened this issue May 5, 2017 · 1 comment
Closed

Number of queries and time showing as 0 #174

unformatt opened this issue May 5, 2017 · 1 comment

Comments

@unformatt
Copy link

Using django 1.9.5. I upgraded to silky 1.0.0 hoping it would fix the problem. It didn't help. I'm using SQL Server

image

in my settings

SILKY_ENABLED = True
if SILKY_ENABLED:
    SILKY_PYTHON_PROFILER = True
    SILKY_PYTHON_PROFILER_BINARY = False
    INSTALLED_APPS.append('silk')
    MIDDLEWARE_CLASSES.insert(0, 'silk.middleware.SilkyMiddleware')

I'm getting an exception here: https://github.com/django-silk/silk/blob/master/silk/middleware.py#L136

Cannot insert the value NULL into column 'id', table 'TestDB.dbo.silk_sqlquery'; column does not allow nulls. INSERT fails. (515) (SQLParamData)

Possibly related: #161

@unformatt
Copy link
Author

I deleted all silk tables and migration records and re-ran migrate and Silk is working happily again.

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

No branches or pull requests

1 participant