I'm having some problems with a date-based view (using Django 1.1):
Not working (no entries shown):
----------------------------
info_dict = {
'queryset': Entry.objects.all(),
'date_field': 'pub_date',
}
urlpatterns = patterns('django.views.generic.date_based',
(r'^$','archive_index', dict(info_dict, template_name='xy.html')),
)
{% for object in latest %}
{% endfor %}
----------------------------
Working:
----------------------------
info_dict = {
'queryset': Entry.objects.all(),
}
urlpatterns = patterns('',
(r'^$','django.views.generic.list_detail.object_list', dict
(info_dict, template_name='xy.html')),
)
{% for object in object_list %}
{% endfor %}
----------------------------
Is there an obvious solution to this?
I'm sorry if there is too few information. Since I'm new to Django I
probably don't know what basic information is needed to solve anything
like this.
Thanks,
Thomas
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---