문제

template:

            <!-- 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 conf:

url(r'^image_slider_row/', views.images_slider_row_func, name='image_slider_row'),

View :

def images_slider_row(request):     
    print "Debug-1"    
    return render_to_response('images_slider_row.html', {}) 

actually I am expecting "images_slider_row_func" will get call on url tag execution but it is not happening, it is showing following string in the browser

/images_slider_row/

am I missing anything or am I misunderstood the concept? Please help me for fixing this issue.

도움이 되었습니까?

해결책

{% url ... %} does not call the url but puts text to make that url either from named url or view path etc.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top