Hi everyone,

I'm following along with the Blog example in the Practical Django
Projects book. Here are my URLs:

entry_info_dict = {
    'queryset' : Entry.live.all(),
    'date_field' : 'pub_date'
}

urlpatterns = patterns('django.views.generic.date_based',
    url(r'^blog/$', 'archive_index', entry_info_dict, name='blog'),
    url(r'^blog/(?P<year>)\d{4}/$', 'archive_year', entry_info_dict,
name='archive_year'),
    url(r'^blog/(?P<year>)\d{4}/(?P<month>\w{3})/$', 'archive_month',
entry_info_dict, name='archive_month'),
    url(r'^blog/(?P<year>)\d{4}/(?P<month>)\w{3}/(?P<day>)\d{2}/$',
'archive_day', entry_info_dict, name='archive_day'),
    url(r'^blog/(?P<year>\d{4})/(?P<month>\w{3})/(?P<day>\d{2})/(?
P<slug>[-\w]+)/$', 'object_detail', entry_info_dict,
name='entry_detail'),
)

I can view the archive index, and the entry detail, but archive_year,
archive_month and archive_day all return 404 error pages. Can someone
please point out what I'm doing wrong?

TIA,
Brandon
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to