On 11/3/06, jefurii <[EMAIL PROTECTED]> wrote: > > Thanks for replying. The update method looks like this: > > def update(request, myobject_id): > o = get_object_or_404(MyObject, pk=myobject_id) > o.title = request.POST['name'] > ... > o.save() > return HttpResponseRedirect('/myapp/%s/' % myobject.id) > > The redirect would break, since it goes to the site root right now, but > I've never actually gotten that far yet. As far as I can tell, the > update method is never called because the request never gets past the > 404. > My guess is that your use of get_object_or_404 is covering the real error. Try commenting out that line and accessing your object directly ( I'm guessing something like this: o=MyObject.objects.get(pk=object_id) ) and see what errors you get. That should give you (and us) a hint of where to look.
-- ---- Waylan Limberg [EMAIL PROTECTED] --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---