I would like to share a template between AJAX and regular HTTP calls, the only difference is that one template needs to be served with the base.html html, the other one without.
Any idea?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Use a variable.
and in your view, set it to “base.html” in your view, or a new “ajax.html” file which just provides the block and nothing else.