U
U
un1t2015-04-29 15:46:58
Django
un1t, 2015-04-29 15:46:58

Javascript forms for django-rest-framework?

In Dzhang, it is convenient to work with forms - visualization, error display, and so on.
But here in the project a bunch of forms were drawn in pop-ups, so you need to process them in js.
On the Djanga side, you can take some django-rest-framework.
What is on the client side? Maybe there is some js library for this purpose, so that you do not have to write a cloud of the same type of code?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
marazmiki, 2015-04-29
@marazmiki

It's not very clear, in fact, how the use of DRF excludes the use of forms :)
But if we are talking about a service, a "thick client" and a backend that is entirely RESTful (where there are basically no jangin templates), then the simplest thing is to do OPTIONS- resource page request. In response, it will issue a schema, according to which it is quite easy to generate HTML. Surely there are ready-made solutions for building forms based on JSON schemas.
In the case of angularjs, the schema is quite viable.

V
vinograd19, 2015-05-04
@vinograd19

It looks like you are opening a pandora's box. Tips in descending order of usefulness:

  • Call a front-end developer who is familiar with some js framework. Delegate the task to him
  • Look towards the backbone-forms library .
  • Start learning some js framework: marionette, angular, ember, react+flux, knockout, thousands of them.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question