D
D
Danil Valiulin2015-01-07 10:30:43
Django
Danil Valiulin, 2015-01-07 10:30:43

How to handle forms when using Django + Angular?

I'm starting to learn Angular in conjunction with Django. There was a question how it is correct to process forms.
Use class_form from django or process with Angular js and then send data from the form to the server.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexey P, 2015-01-07
@ruddy22

you can do it differently. for example, run angular in the form that came from the server, or do spa.
it seems to me that if you are just starting to study both, try to implement both cases.
this is a good practice, feel the technology.

L
lega, 2015-01-07
@lega

I prefer to process "forms" via Anguar and submit via ajax - this way you don't have to reload (rebuild on the server) the whole page just to inform the user that the password is not correct or some other error.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question