R
R
RandomProgrammer2021-07-22 22:39:16
AJAX
RandomProgrammer, 2021-07-22 22:39:16

Is it possible to pass a Django template to Ajax?

I am new to Django. I want to know if it is possible to somehow pass the template to the ajax request, and then add it to the page, or do I need to pass the information, and do everything else in the client? For example, I want to pass a Django-ready form to insert it into a page.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry, 2021-07-23
@pyHammer

RandomProgrammer and what is the actual problem. You do normal view in it render a form template. On the client, make an ajax request to this view and insert it into the page.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question