Skip to content
This repository has been archived by the owner on May 23, 2020. It is now read-only.

LeonardoGentile/djangorestframework-schemaform

 
 

Repository files navigation

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=

About

Angular Schema Form add-on for Django Rest Framework

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 68.3%
  • JavaScript 23.1%
  • HTML 5.1%
  • RobotFramework 2.7%
  • CSS 0.8%