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

umutbozkurt/django-rest-framework-mongoengine: Mongoengine support for Django Re ...

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

开源软件名称:

umutbozkurt/django-rest-framework-mongoengine

开源软件地址:

https://github.com/umutbozkurt/django-rest-framework-mongoengine

开源编程语言:

Python 100.0%

开源软件介绍:

Django Rest Framework Mongoengine

Build Status codecov PyPI version Join the chat at https://gitter.im/BurkovBA/django-rest-framework-mongoengine

The package provides mongoengine support for django-rest-framework.

Documentation

For full documentation, usage and examples refer to DRF manuals.

The features and differences of this package are described in API documentation.

Requirements

  • Django == 2.* | 3.0
  • djangorestframework == 3.*
  • mongoengine == 0.18.* | 0.19.*
  • blinker == 1.* (for mongoengine referencefields to work)

Installation

from pypi

pip install django-rest-framework-mongoengine

from github

  • download some release from github, unpack somewhere.
  • copy subdir unpacked_path/rest_framework_mongoengine into your django project or inside python path
  • or, install using pip unpacked_path

do not use git clone!

It may contain non-working code. Before using it, run tests to ensure the code is working.

Usage

Include the packages in Django settings.

INSTALLED_APPS = (
    ...
    'rest_framework',
    'rest_framework_mongoengine',
    ...
)

Import modules

Use corresponding classes from this package in place of original DRF stuff. Refer to API documentation.

Testing

If you discover something does not work on the DRFM side, the best way to ensure that and report an issue - is to write a test case, with minimal code that fails. You may use this template to create your case.

If you have something (Django, DRF, mongoengine) at a version, not mentioned in release notes, you better run all the tests in your environment to ensure the DRFM is compatible with that version.

For tests to work, you need pytest in your environment.

To run all the tests:

./runtests.py --fast

To run tests from separate file, class or method:

./runtests.py --fast test_name

Releases

Current release

Intended to match DRF API. The major and minor version number matches supported version of DRF. Note: this release is incompatible with all previous.

Old releases

Releases 2.x were not well compatible with DRF and mongoengine. Current code is mostly refactored and reimplemented.

Ancient releases

Releases 1.x were developed to work with DRF 2. This branch is no longer supported. Documentation available here

Maintainers

@qwiglydee @BurkovBA @Vayel @uoxiu

Feel free to mail me if you consider being a maintainer.




鲜花

握手

雷人

路过

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

请发表评论

全部评论

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

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

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

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

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