1.上传视频到七牛云django端实现
1.1 获取七牛云密钥
copy https://portal.qiniu.com/user/key
1.2 在syl/settings.py中配置七牛云上传
copy https://github.com/glasslion/django-qiniu-storage
copy
QINIU_ACCESS_KEY = "PwyTqrclbus4ntRct1o8G2V-qkR1rI7hbd_5Gx29"
QINIU_SECRET_KEY = "IuvSm1vJh2YUiYWFwV-kGmHAJF9R9iGuH2Q1ifea"
QINIU_BUCKET_NAME = "syl-images"
QINIU_BUCKET_DOMAIN = "qi11dgv17.hn-bkt.clouddn.com"
QINIU_SECURE_URL = False
PREFIX_URL = 'http://'
MEDIA_URL = PREFIX_URL + QINIU_BUCKET_DOMAIN + '/media/'
DEFAULT_FILE_STORAGE = 'qiniustorage.backends.QiniuMediaStorage'
MEDIA_ROOT = os.path.join('', "media")