On Sun, 2008-04-20 at 20:16 -0400, Michael wrote: > your days and months can be one your two digits. So: > (r'^(?P<year>\d{4})/(?P<month> > \d{1,2})/(?P<day>\d{1,2})/(?P<slug>[a-z0-9-] > +)/$', > > You can always open up a shell and see the error that is not showing > up in your template. Use the reverse function. Check out: > http://www.b-list.org/weblog/2007/sep/06/tips-and-tricks/
Another possible thing to try, if that isn't the solution, is to use the url() form of specifying URLs and use the "name" parameter. Probably not the problem, but might be worth trying if you're getting desperate. It shouldn't be a problem here because you're using a string to specify the view. However, when a function reference is used to specify the view, it's often quite tricky to make the name you use in the get_absolute_url() method match up with the "name" of the function that Python sees (all the import prefixes have to align, along with a few planets and constellations). Using the "name" parameter when using function references is definitely recommended -- to the extent that I should update the docs to say that -- but, again, I'm not sure it's going to bite you here. It might, though. I haven't read that code for a while and might be forgetting something. Regards, Malcolm -- I intend to live forever - so far so good. http://www.pointy-stick.com/blog/ --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---