I see you have put href as post.get_absolute_url
You could for instance use a relative path.  Put a page field in your model
Post, to refer to the html that the post will be on.
And then :
{% for text in post_list%}
  <a href = "posts/{{text.content_Page}}">  {{text.content_Title}} </a>
    {{text.content_Description}}
    {% endfor %}

This ways you would always be able to keep track of your post pages.

Thi

[image: --]

Maninder Kumar
[image: http://]about.me/maninder.s.kumar
<http://about.me/maninder.s.kumar?promo=email_sig>




On Sun, Jan 19, 2020 at 9:56 PM amanda <[email protected]> wrote:

> Hello,
> I am new to Django, i follow a book : Django by Example 2. i install a
> blog, it show blog post list, but when i click post title, it does not go
> to post detail.html page.
> anyone can tell me where i can wrong?
> Thank you very much!
>
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/2fb56c3c-6eb6-46c9-9162-548a65b3c781%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/2fb56c3c-6eb6-46c9-9162-548a65b3c781%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CABOHK3RQnRor9fygmZo2%3DaB%3DgBtTGPZEe%3DsGTT74xs4ShY%2BYtQ%40mail.gmail.com.

Reply via email to