Re: Django : generic view object_list

2007-08-06 Thread Nebojša Đorđević

On 06.08.2007., at 14:12, Marco A. wrote:

> I have created a view:
>
> (r'^$', 'django.views.generic.list_detail.object_list', info_dict),
>
> In the template I have :
>
> this is just a test, !
>
> {% if error_message %}{{ error_message }}{%  
> endif %}
>
> 
>
> {% for User in info_dict %}

{% for User in object_list %}

http://www.djangoproject.com/documentation/generic_views/#django- 
views-generic-list-detail-object-list

`object_detail` puts all of the found objects in *object_list*.

-- 
Nebojša Đorđević - nesh, Studio Quattro - Niš - Serbia
http://studioquattro.biz/ | http://nesh.studio-quattro.info
http://www.ohloh.net/accounts/6315 | http://www.linkedin.com/in/neshdj
Registered Linux User 282159 [http://counter.li.org]


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Django : generic view object_list

2007-08-06 Thread Marco A.
Hi to all ,
I have created a view:

(r'^$', 'django.views.generic.list_detail.object_list', info_dict),

In the template I have :

this is just a test, !

{% if error_message %}{{ error_message }}{% endif %}



{% for User in info_dict %}
aaa
{{ User.user }} 
{% endfor %}


I cant see , nothing from this list,
I have tried to use User.objects.all but nothing change.
I doesnt see aaa ,so the for doesnt run.

I know that info_disct is a query_set but I can show it whit a for ?

I tried :

User[0].user  and User [0] but doesnt work

Thanks you very much to all for the help that I received and I recive from
this ML-group,

Ciao

Marco

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---