1
- ====================================
2
- Django REST Framework JSON CamelCase
3
- ====================================
1
+ =====================================
2
+ Django REST Framework CamelCase magic
3
+ =====================================
4
4
5
- .. image :: https://badge.fury.io/py/djangorestframework -camel-case .png
6
- :target: http://badge.fury.io/py/djangorestframework -camel-case
5
+ .. image :: https://badge.fury.io/py/drf -camel.png
6
+ :target: http://badge.fury.io/py/drf -camel
7
7
8
- .. image :: https://travis-ci.org/vbabiy/djangorestframework -camel-case.png?branch=master
9
- :target: https://travis-ci.org/vbabiy/djangorestframework -camel-case
8
+ .. image :: https://img.shields.io/pypi/v/drf -camel.svg
9
+ :target: https://img.shields.io/pypi/v/drf -camel.svg
10
10
11
- .. image :: https://img.shields.io/pypi/v/djangorestframework-camel-case.svg
12
- :target: https://img.shields.io/pypi/v/djangorestframework-camel-case.svg
13
11
12
+ Camel case support for Django REST framework - right now only JSON is supported.
14
13
15
- Camel case JSON support for Django REST framework.
14
+ This project is a "resurrection fork" of djangorestframework-camel-case _ by Vitaly Babiy
15
+
16
+ .. _djangorestframework-camel-case https://github.com/vbabiy/djangorestframework-camel-case
16
17
17
18
============
18
19
Installation
19
20
============
20
21
21
22
At the command line::
22
23
23
- $ pip install djangorestframework -camel-case
24
+ $ pip install drf -camel
24
25
25
26
Add the render and parser to your django settings file.
26
27
@@ -30,12 +31,12 @@ Add the render and parser to your django settings file.
30
31
REST_FRAMEWORK = {
31
32
32
33
' DEFAULT_RENDERER_CLASSES' : (
33
- ' djangorestframework_camel_case .render.CamelCaseJSONRenderer' ,
34
+ ' drf_camel .render.CamelCaseJSONRenderer' ,
34
35
# Any other renders
35
36
),
36
37
37
38
' DEFAULT_PARSER_CLASSES' : (
38
- ' djangorestframework_camel_case .parser.CamelCaseJSONParser' ,
39
+ ' drf_camel .parser.CamelCaseJSONParser' ,
39
40
# Any other parsers
40
41
),
41
42
}
@@ -47,11 +48,10 @@ Running Tests
47
48
48
49
To run the current test suite, execute the following from the root of he project::
49
50
50
- $ python -m unittest discover
51
+ $ tox
51
52
52
53
=======
53
54
License
54
55
=======
55
56
56
-
57
57
* Free software: BSD license
0 commit comments