Django ModelViewSet extended for per view base extensions like Serializer Classes etc.
Project description
=============================
Rest Framework Custom ViewSets
=============================
.. image:: https://badge.fury.io/py/rest_framework_custom_viewsets.png
:target: https://badge.fury.io/py/rest_framework_custom_viewsets
.. image:: https://travis-ci.org/Darwesh27/rest_framework_custom_viewsets.png?branch=master
:target: https://travis-ci.org/Darwesh27/rest_framework_custom_viewsets
Django ModelViewSet extended for per view base extensions like Serializer Classes etc.
Documentation
-------------
The full documentation is at https://rest_framework_custom_viewsets.readthedocs.org.
Quickstart
----------
Install Rest Framework Custom ViewSets::
pip install rest_framework_custom_viewsets
Add it to the INSTALLED_APPS setting::
INSTALLED_APPS += ('drf_custom_viewsets')
Example::
from drf_custom_viewsets.viewsets.CustomSerializerViewSet
from myapp.serializers import CustomSerializer1, CustomSerializer2
class MyViewSet(CustomSerializerViewSet):
custom_serializer_class = {
'GET': CustomSerializer1,
'POST': CustomSerializer2,
}
Then import it in a project::
import drf_custom_viewsets
Features
--------
* TODO
Running Tests
--------------
Does the code actually work?
::
source <YOURVIRTUALENV>/bin/activate
(myenv) $ pip install -r requirements-test.txt
(myenv) $ python runtests.py
Credits
---------
Tools used in rendering this package:
* Cookiecutter_
* `cookiecutter-djangopackage`_
.. _Cookiecutter: https://github.com/audreyr/cookiecutter
.. _`cookiecutter-djangopackage`: https://github.com/pydanny/cookiecutter-djangopackage
History
-------
0.0.1 (2016-05-25)
++++++++++++++++++
* First release on PyPI.
Rest Framework Custom ViewSets
=============================
.. image:: https://badge.fury.io/py/rest_framework_custom_viewsets.png
:target: https://badge.fury.io/py/rest_framework_custom_viewsets
.. image:: https://travis-ci.org/Darwesh27/rest_framework_custom_viewsets.png?branch=master
:target: https://travis-ci.org/Darwesh27/rest_framework_custom_viewsets
Django ModelViewSet extended for per view base extensions like Serializer Classes etc.
Documentation
-------------
The full documentation is at https://rest_framework_custom_viewsets.readthedocs.org.
Quickstart
----------
Install Rest Framework Custom ViewSets::
pip install rest_framework_custom_viewsets
Add it to the INSTALLED_APPS setting::
INSTALLED_APPS += ('drf_custom_viewsets')
Example::
from drf_custom_viewsets.viewsets.CustomSerializerViewSet
from myapp.serializers import CustomSerializer1, CustomSerializer2
class MyViewSet(CustomSerializerViewSet):
custom_serializer_class = {
'GET': CustomSerializer1,
'POST': CustomSerializer2,
}
Then import it in a project::
import drf_custom_viewsets
Features
--------
* TODO
Running Tests
--------------
Does the code actually work?
::
source <YOURVIRTUALENV>/bin/activate
(myenv) $ pip install -r requirements-test.txt
(myenv) $ python runtests.py
Credits
---------
Tools used in rendering this package:
* Cookiecutter_
* `cookiecutter-djangopackage`_
.. _Cookiecutter: https://github.com/audreyr/cookiecutter
.. _`cookiecutter-djangopackage`: https://github.com/pydanny/cookiecutter-djangopackage
History
-------
0.0.1 (2016-05-25)
++++++++++++++++++
* First release on PyPI.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for rest_framework_custom_viewsets-0.0.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1d890b5d68c206dafc826397c596b8f88dcdf6fbbd8494f0efb7d18be8549b03 |
|
MD5 | baf2ef559719fc3857fb40c295415f40 |
|
BLAKE2b-256 | fa02d202e7a4354acac73aa43d0520b677e9fcc76592b86080087f298daa187a |
Close
Hashes for rest_framework_custom_viewsets-0.0.3-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8bad0f8409209c7ef7fec488041e32742d10a6c75af5d4bdb8ee6bcf04972de7 |
|
MD5 | ff91520ffe7da5ffbdf5eafcd766eecb |
|
BLAKE2b-256 | 2f7af7d06b45e0f93291fab5697dca05328cfa0ad3f4947ab849955a0bddcd65 |