{ "info": { "author": "NunchakusHuang", "author_email": "hynever@qq.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Natural Language :: Chinese (Simplified)", "Operating System :: MacOS", "Operating System :: Microsoft :: Windows", "Operating System :: Unix", "Programming Language :: Python", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5" ], "description": "# Django Qiniu Plugin\n\nDjango\u540e\u53f0\u63d2\u4ef6\uff0c\u4f7f\u5f97Django\u7684`admin`\u7cfb\u7edf\u53ef\u4ee5\u5b8c\u7f8e\u652f\u6301\u4e03\u725b\u4e0a\u4f20\u3002\u540c\u65f6\uff0c\u4e5f\u652f\u6301`xadmin`\u3002\n\n\n---------------------------\n\n### \u4f7f\u7528\uff1a\n1. \u5728\u9879\u76ee\u7684`settings.py`\u6587\u4ef6\u4e2d\uff0c\u914d\u7f6e\u4ee5\u4e0b\u4fe1\u606f\uff1a\n\t```python\n\t# \u4e03\u725b\u914d\u7f6e\n\tQINIU_DOMAIN = '\u4e03\u725b\u57df\u540d'\n\tQINIU_ACCESS_KEY = '\u4e03\u725b\u7684access_key'\n\tQINIU_SECRET_KEY = '\u4e03\u725b\u7684secret_key'\n\tQINIU_BUCKET_NAME = '\u4e03\u725b\u7684bucket_name\uff08\u4e5f\u5373\u7a7a\u95f4\uff09'\n\t```\n\n2. \u5728`models.py`\u6587\u4ef6\u4e2d\uff0c\u628a\u9700\u8981\u4fdd\u5b58\u4e03\u725b\u4e0a\u4f20\u6587\u4ef6\u540e\u7684\u5730\u5740\u7684\u5b57\u6bb5\uff0c\u4f7f\u7528`QiniuField`\uff0c\u5982\u4e0b\u6240\u793a\uff1a\n\t```python\n\tfrom DjangoQiniu.models import QiniuField\n\tfrom django import models\n\n\tclass Course(models.Model):\n\t\tcourse_name = models.CharField(max_length=100)\n\t\tvideo_url = models.QiniuField(max_length=100,qiniu_field='video_url',btn_title=u'\u4e0a\u4f20\u5230\u4e03\u725b')\n\t```\n\t\u5176\u4e2d`QiniuField`\u7684`qiniu_field`\u5fc5\u987b\u4f20\u548c\u5f53\u524d\u5b57\u6bb5\u4e00\u6837\u7684\u540d\u5b57\u3002`btn_title`\u4e0d\u4f20\u5219\u9ed8\u8ba4\u4e3a`\u4e0a\u4f20\u6587\u4ef6`\u3002\n\n", "description_content_type": null, "docs_url": null, "download_url": "https://github.com/NunchakusHuang/DjangoQiniu/tarball/2017-05-11", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/NunchakusHuang/DjangoQiniu", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "DjangoQiniu", "package_url": "https://pypi.org/project/DjangoQiniu/", "platform": "Windows", "project_url": "https://pypi.org/project/DjangoQiniu/", "project_urls": { "Download": "https://github.com/NunchakusHuang/DjangoQiniu/tarball/2017-05-11", "Homepage": "https://github.com/NunchakusHuang/DjangoQiniu" }, "release_url": "https://pypi.org/project/DjangoQiniu/0.0.1/", "requires_dist": null, "requires_python": "", "summary": "\u5728Django\u540e\u53f0\u53ef\u4ee5\u4f7f\u7528Qiniu\u7684\u63d2\u4ef6", "version": "0.0.1" }, "last_serial": 2866028, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "50c5e07ca0ab59745726fcf1335ab2da", "sha256": "12afbe334595e9643706239ede84750e48a52e16c4c87f88bd586ccdedca8b03" }, "downloads": -1, "filename": "DjangoQiniu-0.0.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "50c5e07ca0ab59745726fcf1335ab2da", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 8469, "upload_time": "2017-05-11T02:48:24", "url": "https://files.pythonhosted.org/packages/99/65/5a4c1daf5343de8cfff3465c589c4280348630391da67fed6691a45bc24f/DjangoQiniu-0.0.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "870ee2d70c55443d76768e8eeced48e2", "sha256": "c3b586fad1e6c4b3da178eb3e34d7f9d172de6fa1fbb97261aaad8dc77aab549" }, "downloads": -1, "filename": "DjangoQiniu-0.0.1.tar.gz", "has_sig": false, "md5_digest": "870ee2d70c55443d76768e8eeced48e2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7428, "upload_time": "2017-05-11T02:48:26", "url": "https://files.pythonhosted.org/packages/82/a0/f6d4facb2a8fe978d95f10efba954cb3c666012555b3e9be57188795ace9/DjangoQiniu-0.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "50c5e07ca0ab59745726fcf1335ab2da", "sha256": "12afbe334595e9643706239ede84750e48a52e16c4c87f88bd586ccdedca8b03" }, "downloads": -1, "filename": "DjangoQiniu-0.0.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "50c5e07ca0ab59745726fcf1335ab2da", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 8469, "upload_time": "2017-05-11T02:48:24", "url": "https://files.pythonhosted.org/packages/99/65/5a4c1daf5343de8cfff3465c589c4280348630391da67fed6691a45bc24f/DjangoQiniu-0.0.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "870ee2d70c55443d76768e8eeced48e2", "sha256": "c3b586fad1e6c4b3da178eb3e34d7f9d172de6fa1fbb97261aaad8dc77aab549" }, "downloads": -1, "filename": "DjangoQiniu-0.0.1.tar.gz", "has_sig": false, "md5_digest": "870ee2d70c55443d76768e8eeced48e2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7428, "upload_time": "2017-05-11T02:48:26", "url": "https://files.pythonhosted.org/packages/82/a0/f6d4facb2a8fe978d95f10efba954cb3c666012555b3e9be57188795ace9/DjangoQiniu-0.0.1.tar.gz" } ] }