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

Đang mở
#233 2 bình luận 0 reaction 1 người được giao Xem trên GitHub

@lukitsbrian đang làm issue này rồi.

Từ ngày 26/2/2020.

Đánh giá

Issue này chưa được đánh giá.

Mô tả

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

Ngôn ngữ chính
Python
Star
262
Fork
133
Merge trung bình
3 phút
Pull request đã merge (30 ngày)
1

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của cloudinary/pycloudinary

Tất cả issue của cloudinary/pycloudinary

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.