On Thu, Jul 16, 2009 at 5:06 PM, Some Guy <djul...@gmail.com> wrote:

>
> Hi Group,
> I found a bug that was causing my issue (ref:
>
> http://groups.google.com/group/django-users/browse_thread/thread/130f36db5e95bd81
> )
>
> In my urls.py I have a line ...
>
>    (r'^diamond/(?P<object_id>\d+)/$', 'object_detail', info_dict,
> {'template': 'diamond_detail.html'}),
>
> If I comment it out it, everything works. Anyone know what's wrong
> with it? It's supposed to be a generic object detail.
>

You're fourth pattern tuple element is a dictionary.  This is being
interpreted as the optional name:

http://docs.djangoproject.com/en/dev/topics/http/urls/#django.core.urlresolvers.patterns

Probably what you really want to be doing is combining your info_dict and
that other dict where you are specifying the template...except I believe for
object_detail the name of the optional parameter you are attempting to
specify is template_name, not template.

Karen

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to