redirect module...

4 views
Skip to first unread message

RavenJade2006

unread,
Mar 11, 2009, 3:50:48 PM3/11/09
to Django users
I had a fantastic developer design an e-commerce site for me in
Django. As the last year has progressed the site has been added to
and continually developed by both he and myself.

When he originally laid out the foundation of the site, there was a
redirect module installed. However when I went to do a redirect last
week the entire module is not in the admin section anymore. So I went
to the database to input it and the site wont recognize the last
redirect, though it will recognize everything else I put in there
through the admin section.

Is it because I did not put it in through the admin section? Or is it
because the page I am trying to redirect from still actually exists?

Thanks either way!

Raven

Jacob Kaplan-Moss

unread,
Mar 12, 2009, 9:33:43 PM3/12/09
to django...@googlegroups.com
On Wed, Mar 11, 2009 at 2:50 PM, RavenJade2006 <RavenJ...@gmail.com> wrote:
> Is it because I did not put it in through the admin section?  Or is it
> because the page I am trying to redirect from still actually exists?

Assuming you're using Django's built-in redirect app
(http://docs.djangoproject.com/en/dev/ref/contrib/redirects/), it's
the later: that app doesn't redirect away from pages that exist.

From the docs: "Each time any Django application raises a 404 error,
this middleware checks the redirects database for the requested URL as
a last resort." Notice that this only happens when an application's
already raised a 404 error, i.e. already reported an invalid URL.

Jacob

Reply all
Reply to author
Forward
0 new messages