A
A
Artem111112020-05-12 22:38:37
Django
Artem11111, 2020-05-12 22:38:37

How to create a form by full declaration?

I'm learning django, going through the creation of forms through the full declaration. Unable to implement. In routes, I can't set 'as.view()' for the BbForm class, I get an attribute error. If I set the path without this, I get the error ''BbForm' object has no attribute 'get'' because it's a class. If in the class I set a function to receive get, it does not work.
I will attach screenshots of urls.py and view.py. In the controller, I added the path to the form template and the form class, but it doesn’t give anything, but as I understand it, this error will happen later when I remove this one.
How to set the route correctly or how to style the class correctly so that this form creation method works?
5ebafc11ddf97533740636.png
5ebafc19889ed739721056.png

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question