Skip to content
This repository has been archived by the owner on Jan 5, 2023. It is now read-only.

A package to help bridge the gap between Django's Forms and VueFormGenerator's Schemas using DjangoRestFramework.

License

Notifications You must be signed in to change notification settings

player1537/django-vueformgenerator

Repository files navigation

Django-VueFormGenerator

https://badge.fury.io/py/django-vueformgenerator.png https://travis-ci.org/player1537/django-vueformgenerator.png?branch=master

A package to help bridge the gap between Django's Forms and VueFormGenerator's Schemas using DjangoRestFramework.

Documentation

The full documentation is at https://django-vueformgenerator.readthedocs.org.

Quickstart

Install Django-VueFormGenerator:

pip install django-vueformgenerator

Then use it in a project:

from django_vueformgenerator.schema import Schema
from django import forms
import json

class TestForm(forms.Form):
    title = forms.CharField(max_length=128)
    content = forms.TextField(max_length=1280)

form = TestForm()  # or TestForm(data={'title':'My Title'})
schema = Schema().render(form)
print(json.dumps(schema))

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:

About

A package to help bridge the gap between Django's Forms and VueFormGenerator's Schemas using DjangoRestFramework.

Resources

License

Stars

Watchers

Forks

Packages

No packages published