Cloudinary API fails to initialise api key when used with Django signals
I made a signal receiver for a model UserFiles
and named it upload_to_cloudinary
. This receiver calls a function inside it, which uploads a file to cloudinary.
This works well enough if the receiver upload_to_cloudinary
is inside the same models.py
as UserFiles
but when I refactored it to signals.py
file in the same app and registered in apps.py
it is starts to throw error: