Hi Bob.

If you're getting 404's, then it's not in import problem on your view.

>From your code this line grabbed my attention:
 p = get_object_or_404(Myclass, pk=slug)

if your are searching against the pk, this will only get any results if
the slug is the pk for your model (that will only happen if you've
overriden django's pk)

if your model has a field called 'slug' you must match it against that:
 p = get_object_or_404(Myclass, slug=slug) 

hope that helps
arthur


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

Reply via email to