django modelviewset扩展为每个视图的基本扩展,如序列化程序类等。


rest_framework_custom_viewsets的Python项目详细描述

=======
rest框架自定义视图集图片::https://badge.fury.io/py/rest_framework_custom_viewsets.png
:目标:https://badge.fury.io/py/rest_framework_custom_viewsets

…图片::https://travis-ci.org/darwesh27/rest_framework_custom_viewsets.png?branch=master
:目标:https://travis ci.org/darwesh27/rest_framework_custom_viewsets

django modelviewset扩展用于序列化器类等每个视图的基本扩展。

https://rest戋u自定义视图集。readthedocs.org.


quickstart
----


install rest framework自定义视图集::

add it to the installed戋apps setting::

installed戋apps+=('drf戋u自定义视图集')


示例::


drf_custom_viewsets.viewsets.customserializerviewset
从myapp.serializers导入customserializer1,customserializer2


class myviewset(customserializerviewset):
custom戋serializer戋class={
“get”:customserializer1,
“post”:customserializer2,





它在一个项目中:


导入drf_自定义视图集
功能
--



>运行测试
--




::


source<;yourvirtualenv>;/bin/activate
(myenv)$pip install-r requirements test.txt
(myenv)$python runtests.py


credits
--


呈现此包时使用的工具:

*cookiecutter
*`cookiecutter djangopackage`

。_ Cookiecutter:https://github.com/audreyr/Cookiecutter
。_` Cookiecutter DjangoPackage`:https://github.com/pydanny/Cookiecutter DjangoPackage





----


<0.0.1(2016-05-25)
++++++++++++++

推荐PyPI第三方库


热门话题
simle 散热器 canadian continued sj envir devs 词典 quince molo richfilequalifier iostream onlinetorch thermostat 并行性 moveax myhello addchild domo 捷径 制图 卷曲 ba 恶心 value sacred svg smack myvariant vali ooxml 标点 dbfile 弹药 pyserial treelite tensor2tensor lxml lexicon 客户端 landscape simulator yieldcurve 网球 converts rekall bluerobotics organizer 国民 loader