-
-
Notifications
You must be signed in to change notification settings - Fork 2
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
Use the Django Checks API to test for misconfiguration #64
Comments
Ok, I’m very confused. If I use curl to see what’s up, then the whole file is sent. I’m using with Chrome 130.0, is that a browser issue? I’ve tried with and without daphne. |
I'll try and replicate this. |
The django middleware. I’m using Chrome 130 on Linux. Edit: I don’t have much time today, but I’ll also explore more next week. In production, it seems everything works fine. |
Can you try v1.2.0? I have a suspicion it's related to the v2 upgrade. |
Well, maybe I’m doing something wrong, but I have the same issue. |
I've been unable to replicate this locally or via new unit tests (#67). Is there any chance you could create a repo that has a minimal example and share it with me? Additional informationDjango sends out static files in If you use I would be interested to know what your browser's Just throwing ideas out there, but this could potentially be a |
I get the same behaviour with uvicorn, or even with a regular manage.py runserver in wsgi (or even just gunicorn with wsgi). I’ll have time this afternoon to explore more so I’ll start from an empty project and will slowly add all my stuff to see when/if it breaks. |
Ok, I found the issue! |
Ahhh this reminds me - I should add some automated checks that throw errors/warnings on Django misconfiguration. For example, I use the Django Check API on another repo I maintain. |
Yes, maybe also just mention this in the docs? It was not an issue with Whitenoise for reasons. |
It is already mentioned in the docs, but I will convert it from a sentence to a warning admonition. You're right about the Django check requiring an app... Will need to debate whether it's worth further deviating from WhiteNoise to include these checks. I technically could do a hacky variant of this and introspect |
Python Version
3.12.7
Django Version
5.1.3
Package Version
2.1.1
Description
With a local setup, my static files are cropped at 8192 characters.
To be honest, I’m not sure what’s happening. I feel this was working fine for a moment, but this morning, all my static assets are cropped after 8192 characters.
I feel there is something about chunks not properly reattached somewhere, but I’m a bit puzzled as of what’s up.
ADMIN NOTE: This was discovered to be a middleware misconfiguration issue. Automated checks should be created that tell the user if something is set up wrong.
The text was updated successfully, but these errors were encountered: