Git Product home page Git Product logo

Comments (7)

brmc avatar brmc commented on August 25, 2024

Edit your MIDDLEWARE_CLASSES so that GZipMiddleware is before SilkyMiddleware

from django-silk.

mtford90 avatar mtford90 commented on August 25, 2024

As @brmc says, things can go awry with middleware placement. I thought I'd fixed the unicode issues however, so I'll leave this open for now and investigate further at some point

from django-silk.

brmc avatar brmc commented on August 25, 2024

The unicode issues arent really your fault. Python 2.x is just traditionally terrible with unicode. This same thing will happen with gzipmiddleware just about anytime other apps are analyzing or modifying the response.
Even so, in your case it wouldn't even really make sense to compensate for the encoding/decoding issues because after everything was decoded properly, you'd still have to decompress the gzipped response. It would be much more beneficial for everyone to just insist on proper middleware ordering.

And FWIW, i like where this app is going. it picks up exactly where debug-toolbar leaves off. In the next couple weeks Im going to try and tackle your enhancement requests(no promises though in case i get busy with work). and i'll probably add some tox integration and python 3 support along the way.

good work!

from django-silk.

mtford90 avatar mtford90 commented on August 25, 2024

@brmc

That's a good point and thanks! If you get to the enhancements do let me know if have any questions about anything. Tox especially sounds like a good idea

--Mike

from django-silk.

brmc avatar brmc commented on August 25, 2024

@mtford90
will do.

in regards to tox, i'll probably start by restructuring your test paths if that's ok with you. similar to, if not exactly like, what I did here: https://github.com/brmc/django-media-helper

the main difference being that, rather than copying the directories during the tests, i'd create a test folder and then symlink to the project from within.

from django-silk.

mtford90 avatar mtford90 commented on August 25, 2024

@brmc

Yeah that's fine with me, the proj organisation is a bit skewed anyhow. We should prob move this to a diff. issue btw ;)

from django-silk.

mtford90 avatar mtford90 commented on August 25, 2024

Closing this as can be solved by middleware placement. Let me know if you're still havin issues tho @melbic

from django-silk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.