Hi,

On Thu, Mar 4, 2010 at 11:20 AM, Wiiboy <jordon...@gmail.com> wrote:
> Is there a way to pass a message when I create a 404 error
> programmatically (i.e. from a view)?  In my case, I'm using
> get_object_or_404, and I'd like to say something like, "That user does
> not exist" (this is for looking at user profiles).

You can create a 404 view:
http://docs.djangoproject.com/en/1.1/topics/http/views/#the-404-page-not-found-view

Regards,
Eugene Wee

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@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