Skip to content
This repository has been archived by the owner on Oct 26, 2021. It is now read-only.

Latest commit

 

History

History
50 lines (33 loc) · 945 Bytes

README.rst

File metadata and controls

50 lines (33 loc) · 945 Bytes

Django REST Framework Angular Schema Form

Angular Schema Form add-on for Django Rest Framework.

Development

Setup:

$ virtualenv-3.5 .
$ source bin/activate
$ pip install -r requirements/dev.txt

Run Tests:

$ tox

Installation

Install:

$ pip install --pre djangorestframework-schemaform

Install app in Django and add content negotiation class to settings.py:

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

 REST_FRAMEWORK = {
     ...
     'DEFAULT_CONTENT_NEGOTIATION_CLASS':
         'rest_framework_schemaform.negotiation.JSONSchemaContentNegotiation',
     'DEFAULT_RENDERER_CLASSES': (
         ...
         'rest_framework_jsonschema.renderers.JSONSchemaRenderer',
     ),
}

Content Negotiation

http://localhost:8000/application/?format=