cloudinary / cloudinary/pycloudinary

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

Abierto
#233 2 comentarios 0 reacciones 1 asignado Reclamado por @lukitsbrian Ver en GitHub
question
Lenguaje dominante
Python
Estrellas
262
Forks
134
Merge medio
5 h 6 min
PR fusionados (30 d)
5

Descripción

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

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.