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

expected str, bytes or os.PathLike object, not NoneType #36

Closed
aaqidmasoodi opened this issue Sep 5, 2023 · 1 comment
Closed

expected str, bytes or os.PathLike object, not NoneType #36

aaqidmasoodi opened this issue Sep 5, 2023 · 1 comment

Comments

@aaqidmasoodi
Copy link

I am trying to push my static files to Cloudinary but I am getting an error :
expected str, bytes or os.PathLike object, not NoneType

I am using Django 4.1.
django_errors.log

I jave attached my log file. I am not able to figure out why this is happening. please help

@Nathius262
Copy link

intead of using this in your django application;
STATICFILES_STORAGE = 'cloudinary_storage.storage.StaticHashedCloudinaryStorage'

change it to this
STATICFILES_STORAGE = 'cloudinary_storage.storage.StaticCloudinaryStorage'

that will solve the problem.

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

No branches or pull requests

2 participants