sure thing:

from django.conf.urls.defaults import *
from mysite.blog.models import Entry
from tagging.views import tagged_object_list

info_dict = {
        'queryset': Entry.objects.filter(status=1),
        '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',template_name='blog/detail.html')),
        (r'^(?P<year>\d{4})/(?P<month>[a-z]{3})/(?P<day>\w{1,2})/(?
P<slug>[-\w]+)/$', 'object_detail', dict(info_dict,
template_name='blog/list.html')),
        (r'^(?P<year>\d{4})/(?P<month>[a-z]{3})/(?P<day>\w{1,2})/
$','archive_day',dict(info_dict,template_name='blog/list.html')),
        (r'^(?P<year>\d{4})/(?P<month>[a-z]{3})/$','archive_month',
dict(info_dict, template_name='blog/list.html')),
        (r'^(?P<year>\d{4})/$','archive_year', dict(info_dict,
template_name='blog/list.html')),
        (r'^$','archive_index', dict(info_dict, template_name='blog/
list.html')),
)


On Dec 8, 7:29 pm, "Jay Parlar" <[EMAIL PROTECTED]> wrote:
> Could you post your urls.py file for your blog app? It's very easy to
> make a mistake in there that results in confusing time-related errors.
>
> Jay P.
--~--~---------~--~----~------------~-------~--~----~
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