Hi,

You can take a look on how the contrib.redirect handles 404 and then create
a custom Middleware for your specific need.

http://code.djangoproject.com/browser/django/trunk/django/contrib/redirects/middleware.py

HTH,
Tiago

On Fri, Sep 11, 2009 at 11:26 PM, Jordon Wii <[email protected]> wrote:

> Hi,I want set up something where users upload an article, and an
> associated image.  If they do not provide an image, then, when someone reads
> the article, I'd like return a specific image.  I've looked at custom
> storage backends, but those are too complex.
>
> How can return a specific image when there is a 404 error for an image on a
> path?
> I can also resort to showing nothing, but that could make styling harder.
>  If there's is a way to do this, I'd like to.
>
> >
>


-- 
Tiago Serafim

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