django-easy-pjax에서 사용합니다.Django-easy-pjax가 실제로 작동하지 않습니다.
ubase.html
<script type="text/javascript" src="{% static "/static/js/jquery-1.9.1.min.js" %}"></script>
<script src="{% static "/static/js/jquery.pjax.js" %}"></script>
{% block side%}
It is {% now "c" %}
sdfdsfdsf
<a href="/uu/">uu</a>
<a href="/uu1/">uu1</a>
<br/><br/><br/><br/><br/><br/>
{%endblock side%}
{%block main%}
sdfdfsdfdsfdsfdfdsf
{%endblock main%}
entry_index.html
{% extends "ubase.html"|pjax:request %}
{%block main%}
1
{%endblock main%}
entry_index2.html
{% extends "ubase.html"|pjax:request %}
{%block main%}
2
{%endblock main%}
내보기 :
def entry_index1(request):
return render_to_response('entry_index1.html', {}, context_instance = RequestContext(request))
def entry_index(request):
return render_to_response('entry_index.html', {}, context_instance = RequestContext(request))
나는이 기본 코드를
내 URL을
url(r'^uu/$', search_views.entry_index),
url(r'^uu1/$', search_views.entry_index1),
하지만 UU 링크를 클릭 사용하거나 uu1이 시간 변경을 연결하고 너무입니다 왜 개개인이 example처럼 정말 작동하지 pjax 때?
u는 당신이 작업하고 pjax_ubase.html' 또는 작동하게하려면 u이 코드에 대한 모든 다른 변경'에 대한 코드를 추가하려고 어떤 변화가 여기에 편집시겠습니까 ! –