I am trying to use generic views for a hand built weblog app. I am getting a template error of "Could not parse the remainder: % object.title %"
My blog/urls.py is: ----- from django.conf.urls.defaults import * from binarymanipulations.blog.models import Entry info_dict = { 'queryset': Entry.objects.all(), 'date_field': 'pub_date', } urlpatterns = patterns('django.views.generic.date_based', (r'^(?P<year>\d{4})/(?P<month>[a-z]{3})/(?P<day>\w{1,2})/(?P<slug>[-\w]+)/$', 'object_detail', dict(info_dict, slug_field='slug')), (r'^(?P<year>\d{4})/(?P<month>[a-z]{3})/(?P<day>\w{1,2})/$', 'archive_day', info_dict), (r'^(?P<year>\d{4})/(?P<month>[a-z]{3})/$', 'archive_month', info_dict), (r'^(?P<year>\d{4})/$', 'archive_year', info_dict), (r'^$', 'archive_index', info_dict), ) ----- My blog/models.py is: ----- from django.db import models import datetime # Create your models here. class Entry(models.Model): title = models.CharField(maxlength=255, core=True) pub_date = models.DateTimeField(core=True) slug = models.SlugField(maxlength=30, prepopulate_from= ['title']) body = models.TextField(core=True) class Admin: fields = ( (None, {'fields': ('slug', 'title', 'pub_date', 'body',)}), ) def __str__(self): return self.title ----- My template/blog/entry_archive.html is: ----- {% extends blog_base.html %} {% block content %} {% for object in latest %} <p> {{% object.title %}} </p> <p> {{% object.body %}} </p> {% endfor %} {% endblock %} ----- I think my problem is that I am calling latest instead of something else . I am not sure what the name for it should be. I tried to define a template_object_name but that raised an error that it was unexpected. Any help would be appreciated. Thanks, Evan --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---