I can't find jquery.js file in my Django project

Options
ryan
ryan Member Posts: 3
edited October 2022 in Developer APIs

So I've been having an error in my Django project, which happens when I turn off the Debug and run the project. (I'm using django-cloudinary-storage library.)

I was digging into the issue, and found out that there was no admin/js/jquery.js file in my staticfiles folder. All the other static files are located in the folder, and hashed as they all should be.

But I can't find the admin/js/jquery.js file, and this is causing problem in hashed_name function in HashedCloudinaryMixin class, saying absolute_path is None .

(The exact error message is : TypeError: expected str, bytes or os.PathLike object, not NoneType)


So how do I add the admin/js/jquery.js file and hash so it can be uploaded to cloudinary? And why does this happen when Debug=False?

Does anyone have idea on how to fix the problem? Thanks.

Tagged:

Answers