cloudinary / cloudinary/pycloudinary

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

オープン
#233 コメント 2 件 リアクション 0 件 担当者 1 名 @lukitsbrian が担当を希望しています GitHub で見る
question
主要言語
Python
スター
262
フォーク
134
平均マージ
5時間 6分
マージ済み PR(30日)
5

説明

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

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。