-
-
Notifications
You must be signed in to change notification settings - Fork 4
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
Error: expected str, bytes or os.PathLike object, not NoneType #61
Comments
Interesting, i'm not seeing anything in that which looks specifically wrong. Is there any more of a stack trace which tells you which line in the library is the issue? This will likely be in the django logs rather than being shown in the page. |
Sorry, here is the stack trace. Traceback (most recent call last): |
hmm interesting. Looks like that's coming from https://github.com/RealOrangeOne/django-sri/blob/master/sri/utils.py#L27. Do you have |
No actually, my project currently using STATICFILES_DIRS. |
ah, ok, I see the issue. It looks like it's incorrect to be reading files direct from There's probably a helper in Django for getting the filesystem path of a static file somewhere, i'll give it a look over the weekend |
Hi, I just installed the package and set up according to the documentation by adding 'sri' to INSTALLED_APP, and set USE_SRI equal to True (cause my project still in development), but I still getting this error. I have no idea which part I've done wrong. Please help!
The text was updated successfully, but these errors were encountered: