On Thu, 2008-10-23 at 23:59 -0700, Net_Boy wrote:
[...]
> -------------------
> views.py:
> def bid_history(request, object_id):    item = get_object_or_404(Item,
> item_id=object_id)
> bid_history = Bid.objects.filter(bid_item=item).order_by('-
> bid_price')
> return render_to_response("bid_list.html", {"bid_history":
> bid_history}, context_instance=RequestContext(request))

For future reference, you're going to want to pay attention to indenting
when pasting code fragments like this, since this code is basically
illegal Python (and fairly unreadable for us as well).

> -------------------------------------
> urls.py:
> (r'^auction/(?P<object_id>\d+)/bid_history/$', 'bid_history',
> 'assignment3.auction.views.bid_history'),

The third argument to a URL Conf pattern is not a string. It's a
dictionary. I'm not sure what you're trying to do here, but this isn't
correct. So the problem is in this line.

Regards,
Malcolm



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