You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
How to use CloudinaryField to accept images/url from other sources? #233
class Category(models.Model):
name = models.CharField(max_length=255)
url = models.CharField(max_length=255)
image = CloudinaryField(null=True)
image_source=models.CharField()
I want to use the image field to accept images that uploaded from admin, also some of my background tasks add the image URLs to that field depends on the image_source.
Possible image sources are: Google, Facebook, cloudinary or CloudFront
For example: When the image source is from google, I just want to save the complete image URL() instead of uploading the actual image to cloudinary and saving the id
@abkiran Are you running into an issue with your current implementation? It seems like what you have should work since you have a url field and a nullable image field for Cloudinary images.
Activity
lukitsbrian commentedon Feb 26, 2020
@abkiran Are you running into an issue with your current implementation? It seems like what you have should work since you have a
urlfield and a nullableimagefield for Cloudinary images.abkiran commentedon Feb 27, 2020
@brian-cloudinary
urlfield is to store the auto generated slug,My question was can I store the image URL of different source in to the image field