Coder Social home page Coder Social logo

bkawan / django_schema Goto Github PK

View Code? Open in Web Editor NEW
7.0 5.0 2.0 3.95 MB

This package will convert django models to json schema for html forms for the frontend. It can be helpful while create web app with frontend library/frameworks such as Vue, React, Angular etc.

License: Other

Python 76.60% CSS 2.52% HTML 20.88%
django-schema django-model-schema form-schema django-model-json-form-schema python

django_schema's Introduction


django_schema


Django Schema is a simple Django app to generate schema of Models .

Demo Link

django-schema-demo.gif

Installation

$ pipenv install django_schema

Detailed documentation is in the “docs” directory.

Quick start

  1. Add “schema” to your INSTALLED_APPS setting like this:
INSTALLED_APPS = [
    ...
    'django_schema',
]
  1. Add list of local apps to SCHEMA_APPS setting like this
SCHEMA_APPS = [
        'blog',
        'users',
        'product',
]
  1. Include the schema URLconf in your project urls.py like this:
from django.urls import include
urlpatterns = [
    ...
    path('schema/', include('django_schema.urls'))
]
  1. Visit http://127.0.0.1:8000/schema/ to check all the schema styles
  2. For testing
MODEL_SCHEMA_TEST = {
    'app_name':'blog',
    'model':'post'
}

To Do

  • Permission
  • Handling App versioning for ex ‘apps/v1/blog’, ‘apps/v1/users’
  • Add Serializers For all the Django Model Field INTERNAL_TYPES
  • Handle more html elements types
  • Add docs
  • Add Testing

django_schema's People

Contributors

bkawan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.