0
0
0xC0CAC01A2014-11-08 05:22:03
Django
0xC0CAC01A, 2014-11-08 05:22:03

How to generate forms and views based on models.py in Django?

Started using Django and a bit disappointed. It seemed to me that in the simplest CRUD case, you can describe the base in models.py, and the forms themselves will already be generated, all that remains is to trim them a little, remove some of the fields and that's it.
But the documentation and, for example, this video show that there is no escape from writing a bunch of extra boilerplate and configs. Or am I wrong?
If so, why is Django better than Spring MVC, if both there and there you need to read the docks and poke around in muddy configs?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Ali Aliyev, 2014-11-08
@ali_aliev

I do not understand what the problem is to make model forms? ( https://docs.djangoproject.com/en/dev/topics/forms... ). Easier in my opinion is nowhere. Yes, Django is such a framework where you need to do everything by hand, where everything is under the control of the developer.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question