Thanks for your suggestion.

I do use that in other parts of the website, but in this one, I'm
using a generic view - so what I need (I think) is a mechanism to
check the existence of the included page within the template.

My default action if I can't find a better way, is to write a view
just so I can do this check, but I'd rather not if there's an
alternative I can use within the generic view.

Rachel

On 17/10/06, RajeshD <[EMAIL PROTECTED]> wrote:

> Assuming that you have a view that passes the params.pagename variable
> to your template, you could make that view raise Http404 (by first
> checking whether pagename exists.)
>
> See: http://www.djangoproject.com/documentation/tutorial3/#raising-404

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

Reply via email to