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

Profiling files get copied into MEDIA_ROOT #151

Closed
r3m0t opened this issue Dec 1, 2016 · 3 comments
Closed

Profiling files get copied into MEDIA_ROOT #151

r3m0t opened this issue Dec 1, 2016 · 3 comments

Comments

@r3m0t
Copy link
Contributor

r3m0t commented Dec 1, 2016

Silk saves prof files to SILKY_PYTHON_PROFILER_RESULT_PATH but then copies them all into MEDIA_ROOT.

The solution is to specify the storage= on the FileField as an instance of this:

class SilkyStorage(FileSystemStorage):
    def __init__(self, **kwargs):
        kwargs['location'] = settings.SILKY_PYTHON_PROFILER_RESULT_PATH
        super(SilkyStorage, self).__init__(**kwargs)

Also, it isn't clear from the documentation what SILKY_PYTHON_PROFILER_RESULT_PATH is meant to be relative to.

I'm running 0.7.0 due to the PostgreSQL issues in 0.7.1.

@avelis
Copy link
Collaborator

avelis commented Dec 6, 2016

@r3m0t I will get a release with this issue addressed soon (EOW).

@xyb
Copy link

xyb commented Feb 13, 2017

@avelis is it time to release a new version? I'm looking forward to use this great patch. Thank you.

@avelis
Copy link
Collaborator

avelis commented Feb 13, 2017

@xyb release made

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants