Re: Flatpages not working on Apache+mod_python

2007-05-16 Thread Nimrod A. Abing
On 5/17/07, Jeremy Dunck <[EMAIL PROTECTED]> wrote: > > On 5/16/07, Jeremy Dunck <[EMAIL PROTECTED]> wrote: > > Already done, though under-documented. > > http://www.djangoproject.com/documentation/templates/#django-contrib-markup > > Ah, here, too: > http://www.djangoproject.com/documentation/add

Re: Flatpages not working on Apache+mod_python

2007-05-16 Thread Jeremy Dunck
On 5/16/07, Jeremy Dunck <[EMAIL PROTECTED]> wrote: > Already done, though under-documented. > http://www.djangoproject.com/documentation/templates/#django-contrib-markup Ah, here, too: http://www.djangoproject.com/documentation/add_ons/#markup --~--~-~--~~~---~--~---

Re: Flatpages not working on Apache+mod_python

2007-05-16 Thread Jeremy Dunck
On 5/16/07, Nimrod A. Abing <[EMAIL PROTECTED]> wrote: ... > I am using middleware as described in the docs. I don't see how to use > flatpages as a view in the docs. How do you do that? As the last entry in your urlpatterns, include this: (r'^(.*)/$','django.contrib.flatpages.views.flatpage'

Re: Flatpages not working on Apache+mod_python

2007-05-16 Thread Nimrod A. Abing
On 5/17/07, Jeremy Dunck <[EMAIL PROTECTED]> wrote: > > On 5/16/07, Nimrod A. Abing <[EMAIL PROTECTED]> wrote: > > Can anyone here provide pointers on how to get flatpages to work > > properly under Apache and mod_python? > > From your custom 404, you'll want to return > django.http.HttpResponseNo

Re: Flatpages not working on Apache+mod_python

2007-05-16 Thread Jeremy Dunck
On 5/16/07, Nimrod A. Abing <[EMAIL PROTECTED]> wrote: > Can anyone here provide pointers on how to get flatpages to work > properly under Apache and mod_python? >From your custom 404, you'll want to return django.http.HttpResponseNotFound rather that HttpResponse. Also, are you using flatpage m