Thank you Karen,
Just now I realized that it was a typo which caused this pain. From now on,
I should type slowly.

Best regards!
Mohammed.

On Mon, Feb 4, 2019 at 6:02 PM Karen Tracey <[email protected]> wrote:

>
>> In the conference list html, this is the code snippent: `<a href="{% url
>> 'conferences:conference-detail' pk=conference.pk slug=conference.slug
>> %}"><h6>{{ conference.title }}</h6></a>`. It redirects to the conference
>> detail page without any problem. In the conference by country html, I have
>> the following code:
>>
>>     <ul class="list-group">
>>                 {% for conferenc in conferences %}
>>                     <a class="list-group-item list-group-item-action"
>> href="{% url 'conferences:conference-detail' pk=conference.pk
>> slug=conference.slug %}"> {{ conferenc.title }} </a> {%comment%} Here is
>> the problem. {% endcomment %}
>>                 {% endfor %}
>>                  </ul>
>>
>
> This for loop has variable named conferenc but in the urtl tag the name
> conference is used. The same name needs to be used in both places. (If you
> change to conference note the use of conferenc to show the title will also
> need to change.
>
> (Thanks for all the detail in the question!)
>
> --
> 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 post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CACS9raciD2hFjbhuQjqBTTnydpQsNe_Ph3CmdehDzbXpvn2B5A%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CACS9raciD2hFjbhuQjqBTTnydpQsNe_Ph3CmdehDzbXpvn2B5A%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAAbatOSZ0U_G-73VK9RmMhBpL4LfjzcgKfrkR9ZMLncmHRG%3Dkg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to