Saturday, January 2, 2010

Re: A module for adding link suggestions to 404 pages

Thanks for the link to the spelling correction chapter. It will be
nice to have a solid walkthrough of basic correction theory.
As for making it exclusively for Django, I had the same issue you
brought up...flat pages and templates. For example, I have url
patterns like:
/project/*

on my site, and I want the module to match the proper values for the
'*' as well...but that part isn't specified in urls.py.
In my urls list object, I can add all possible values by using
something like

urls = [p.name for p in Project.objects.all()]

I wish there was some way to do this in urls.py instead...it would
make the module *much* easier to use. At that point I would consider
making the module exclusively for Django.

Aditya

On Jan 2, 12:26 pm, Raja <rajas...@gmail.com> wrote:
> If its just for Django, then it could be simpler as the only possible
> URLs (with exception to flatpages) will be from urls.py. (Equivalent
> of the urls list object from your codebase). On googling for a similar
> app earlier, I found this chapter online about Spelling correction.http://nlp.stanford.edu/IR-book/html/htmledition/spelling-correction-...
>
> -- Raja
>
> On Jan 2, 3:23 am, aditya <bluemangrou...@gmail.com> wrote:
>
> > While redoing my website, I came up with a simple module that adds a
> > url suggestion if a user encounters a 404 page. For example, following
> > this link:http://www.wefoundland.com/rresume
>
> > will lead you to a 404 page that points you to the right place. I'm
> > currently starting to rewrite this module so I can make it more widely
> > available. I'd like to have another pair of eyes on it (or another 2
> > pairs) to improve the speed and the module interface. Anyone
> > interested in contributing?
>
> > I've got a project page set up here with more details:http://www.wefoundland.com/project/py404/
>
> > Aditya

--

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 django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate