How to use CloudinaryField to accept images/url from other sources?

Open
#233 2 comments 0 reactions 1 assignee View on GitHub

@lukitsbrian is already working on this.

Since Feb 26, 2020.

Assessment

This issue has not been assessed yet.

Description

question

I used Django package cloudinary==1.19.1

models.py

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

How do I achieve this?

@brian-cloudinary @const-cloudinary @cloudinary @CloudinaryLtd

Dominant language
Python
Stars
262
Forks
133
Avg merge
3m
Merged PRs (30d)
1

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from cloudinary/pycloudinary

All issues in cloudinary/pycloudinary

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.