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

Offen
#233 2 Kommentare 0 Reaktionen 1 zugewiesene Person Auf GitHub ansehen

@lukitsbrian arbeitet bereits daran.

Seit 26.2.2020.

Bewertung

Dieses Issue wurde noch nicht bewertet.

Beschreibung

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

Vorherrschende Sprache
Python
Sterne
262
Forks
133
Ø Merge
3 Min.
Gemergte PRs (30 T.)
1

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus cloudinary/pycloudinary

Alle Issues in cloudinary/pycloudinary

Ähnliche Issues

Weitere Issues zu Python

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.