On 2/23/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> I am a bit unclear as to how to call a Flat page.
>
> I 've done the necessary work, created the default template, got
> flatpages showing up in the admin and followed the instructions. Eg. my
> Introduction page is named /int/.

Did you add the middleware that goes along with it?  :-)


> In my template I just try to reference it as href="/int/" but this does
> not work.
>
> I understand to usual  url-view-template senario, but I am a bit lost
> here.  The docs do not seem to suggest that you need to write a URL
> rule.

You're right, you don't; what happens when you have the flatpage
middleware installed is that when you trigger a "page not found"
error, it goes and checks the flatpage table to see if there's a
flatpage for that location, and if so, returns it instead of the 404
error.

--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to