Reputation: 3781
I would like to update my block content without loading all the page.
I think I have to use ajax but I have 2 problems.
How to send the template in Json in Django?
How to change change the template using javascript/jquery I think I have to hide my last template and put my new one but I think there is a better way.
<!DOCTYPE html>
<head>
<title>{% block title %}{% endblock %}</title>
</head>
<body>
{% block content %}{% endblock %}
</body>
</html>
Upvotes: 0
Views: 305