I'm not sure what I am doing wrong. I've tried a few things but it isn't working and I get a 404 error for everything:
def detail(request, slug): p = get_object_or_404(Myclass, pk=slug) return render_to_response('myapp/detail.html', {'what goes here?': p }) # it did work with: return HttpResponse("You are looking at post for the slug: %s" % slug) I think I have imported everything that I need: HttpResponse, Http404, render_to_response, get_object_or_404 --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---