Wednesday, September 23, 2015

Re: Reverse for 'post_detail' with arguments '()' and keyword arguments '{'pk': 1}' not found. 1 pattern(s) tried:

Dear Luis,

As you said, i tried but can't success.

Thanks in advance
Sankar B

On Wed, Sep 23, 2015 at 12:29 AM, Luis Zárate <luisza14@gmail.com> wrote:

2015-09-22 12:48 GMT-06:00 sankar vasu <sankarmcp13@gmail.com>:
<h1><a href="{% url "post_detail" pk=post.pk %}">{{ post.title }}</a></h1>

try:

<h1><a href="{% url "post_detail" post.pk %}">{{ post.title }}</a></h1>

If not found then check your project url.py , do you have something like


urlpatterns = [
    url(r'^$', include('myapp.urls') ),
    ....
]
--
"La utopía sirve para caminar" Fernando Birri


--
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 django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAG%2B5VyPXAjmyVWj5jJzvX70%2BE0%3DLaAaXW4DpvoUdyLqrONxOpA%40mail.gmail.com.

For more options, visit https://groups.google.com/d/optout.



--
By,

Sankar

--
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 django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAPzi0vD5xRApko4TJnXAtBm9R7xfOmpcRbObh8Pyjg6TSHa%2Bfw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment