Answer the question
In order to leave comments, you need to log in
Where to hide ajax logic?
Hello!
There is a project on django, mostly basic functionality, jquery is used for interactivity. Interactivity lies in the fact that a comment is written, a button is pressed and the comment flies to the page and other similar things. Now all the js code and pieces of html that arrive are stored in the script tag on the page. So the question is, how can this be avoided? After all, you can’t put it in a separate file because all sorts of things like {% for item in items %} from django will not work there.
Thanks
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question