2009/7/19 Rob B (uk) <robtot...@googlemail.com>: > > Getting a unblanced parenthesis error with this urls setup. Not sure > why.
The message is pretty self-explanatory. It seems to me that you have forgotten a parenthesis after your first symbolic group named year. Frédéric > urls.py: > from django.conf.urls.defaults import * > from coltrane.models import Entry > > entry_info_dict = { > 'queryset': Entry.objects.all(), > 'date_field': 'pub_date', > } > > urlpatterns = patterns('django.views.generic.date_based', > (r'^$', 'archive_index', entry_info_dict, > 'coltrane_entry_archive_index'), > (r'^(?P<year>\d{4}/$', 'archive_year', entry_info_dict, > 'coltrane_entry_archive_year'), > (r'^(?P<year>\d{4}/(?P<month>\w{3})/$', 'archive_month', > entry_info_dict, 'coltrane_entry_archive_month'), > (r'^(?P<year>\d{4}/(?P<month>\w{3})/(?P<day>\d{2}/)$', > 'archive_day', entry_info_dict, 'coltrane_entry_archive_day'), > (r'^(?P<year>\d{4}/(?P<month>\w{3})/(?P<day>\d{2})/(?P<slug>[- > \w]+)/$', 'object_detail', entry_info_dict, 'coltrane_entry_detail'), > ) > > > -- http://www.openidfrance.fr/fhebert --~--~---------~--~----~------------~-------~--~----~ 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 django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---