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

Aperta
#233 2 commenti 0 reazioni 1 assegnatario Vedi su GitHub

@lukitsbrian ci sta già lavorando.

Dal 26/2/2020.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

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

Lingua principale
Python
Stelle
262
Fork
133
Merge medio
3m
PR unite (30g)
1

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di cloudinary/pycloudinary

Tutte le issue di cloudinary/pycloudinary

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.