소스 검색

Need to use page.url rather than full_url because of localhost port

Edd Baldry 8 년 전
부모
커밋
1eb29f5af1
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      bakerydemo/templates/blog/blog_index_page.html

+ 1 - 1
bakerydemo/templates/blog/blog_index_page.html

@@ -5,7 +5,7 @@
     {{ page.title }}
     {% for blog in blogs %}
         <div>
-            <h2><a href="{{ blog.full_url }}">{{ blog.title }}</a></h2>
+            <h2><a href="{{ blog.url }}">{{ blog.title }}</a></h2>
             {{ blog.body|truncatewords_html:10 }}
 
             {% for tag in blog.get_tags  %}