>
>
> 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 django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
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.
For more options, visit https://groups.google.com/d/optout.

Reply via email to