模板:
<!-- Images slide as a row starts -->
<!-- power.views.IMAGE_SLIDES_ROW returns image_slider_row/ -->
{% url power.views.IMAGE_SLIDES_ROW %}
<!-- Images as a row Ends -->
网址配置:
url(r'^image_slider_row/', views.images_slider_row_func, name='image_slider_row'),
看法 :
def images_slider_row(request):
print "Debug-1"
return render_to_response('images_slider_row.html', {})
实际上我期待“images_slider_row_func”会在 url 标签执行时被调用,但它没有发生,它在浏览器中显示以下字符串
/images_slider_row/
我错过了什么还是我误解了这个概念?请帮我解决这个问题。