Answer the question
In order to leave comments, you need to log in
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
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.
It looks like you are opening a pandora's box. Tips in descending order of usefulness:
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question