WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content
This repository was archived by the owner on Oct 26, 2021. It is now read-only.

tisto/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