Hi,
I am bit new to django.
I am using django generic view to display building details from Building
module.(Building is model I implemented in my app)
this is my url patterns

(r'^building/$', list_detail.object_list, building_info),
 (r'^building/(?P<object_id>\d+)/$', list_detail.object_detail,
building_info),

these are the two templates

1) ---
{% block content %}
    <h2>Buildings</h2> <ul>
        {% for building in object_list %}
            <li>  {{ building.name }}</li>
        {% endfor %}
{% endblock %}

2)---
{% block content %}
    <h2>Building</h2>
{{object_detail.name}}
{% endblock %}

first template using objects list display the desired results , but second
template
dosent display any results , Wat would the the mistake i may have done. Plz
any can
suggest me a soulution.

Thanks in Advance
Waruna,

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to