umutbozkurt/django-rest-framework-mongoengine
关于
为 Django Rest Framework 提供 MongoEngine 支持
网站与应用开发实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- -1
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文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_mongoengineinto 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.
探索相关项目
加载中…