• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

andres-torres-marroquin/django-dropbox: A Django App that contains a Django Stor ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

andres-torres-marroquin/django-dropbox

开源软件地址:

https://github.com/andres-torres-marroquin/django-dropbox

开源编程语言:

Python 100.0%

开源软件介绍:

django-dropbox

Version 0.1.2

What

django-dropbox is a Django App that contains a Django Storage which uses Dropbox.

Installing

First of all

pip install django-dropbox

Add it to your Django Project

INSTALLED_APPS on settings.py

INSTALLED_APPS = (
    ...
    'django_dropbox',
    ...
)

additionally you must need to set the next settings:

DROPBOX_ACCESS_TOKEN = 'xxx'

if you don't have DROPBOX_ACCESS_TOKEN you can create one after creating a Dropbox app at Dropbox for Developers. If you have your Dropbox App key and App secret, you can set DROPBOX_CONSUMER_KEY and DROPBOX_CONSUMER_SECRET settings in settings.py, then run:

$ python manage.py get_dropbox_token

And follow up on screen instructions, finally set the and DROPBOX_ACCESS_TOKEN_SECRET in settings.py

Contributing

When contributing, please follow these steps:

  • Clone the repo and make your changes.
  • Make sure your code has test cases written against it.
  • Make sure all the tests pass.
  • Lint your code with Flake8.
  • Add your name to the list of contributers.
  • Submit a Pull Request.

Tests

Tests are written following Django best practices. You can run them all easily using the example django_project.

$ cd django_dropbox_project
$ python manage.py test --settings=settings

To check the unit tests coverage you can:

$ pip install coverage
$ cd django_dropbox_project
$ coverage run manage.py test --settings=settings
$ coverage report -m



鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap