Sofiane SEHAKI
Sofiane SEHAKI

Reputation: 1

django python ajax java script html

Hello every one , my problem is in django and ajax




i want to use two block one for django and the other for ajax but the ajax code is not reading , why ?

{% extends 'store/main.html' %} {% load static %} {% block content %}

// code html

{% endblock content_ajax %}`

block content_ajax your text%}

       //code ajax

{% endblock content_ajax %}`

# 

Upvotes: 0

Views: 18

Answers (1)

ShiBil PK
ShiBil PK

Reputation: 608

Inside store/main.html

{% block content_ajax %}
{% endblock content_ajax %}

Upvotes: 0

Related Questions