Skip to main content
Help us improve Python packaging – donate today!


Project Description

# Django Qiniu Plugin



### 使用:
1. 在项目的``文件中,配置以下信息:
# 七牛配置
QINIU_ACCESS_KEY = '七牛的access_key'
QINIU_SECRET_KEY = '七牛的secret_key'
QINIU_BUCKET_NAME = '七牛的bucket_name(也即空间)'

2. 在``文件中,把需要保存七牛上传文件后的地址的字段,使用`QiniuField`,如下所示:
from DjangoQiniu.models import QiniuField
from django import models

class Course(models.Model):
course_name = models.CharField(max_length=100)
video_url = models.QiniuField(max_length=100,qiniu_field='video_url',btn_title=u'上传到七牛')

Release history Release notifications

This version
History Node


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
DjangoQiniu-0.0.1-py2.py3-none-any.whl (8.5 kB) Copy SHA256 hash SHA256 Wheel py2.py3 May 11, 2017
DjangoQiniu-0.0.1.tar.gz (7.4 kB) Copy SHA256 hash SHA256 Source None May 11, 2017

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page