Re: flatpage for 404

2008-06-21 Thread Karen Tracey
On Sat, Jun 21, 2008 at 8:19 AM, mark <[EMAIL PROTECTED]> wrote: > > I think I found an acceptable solution now. > > I added the following to the files in my project directory... > urls.py: > ... > handler404 = 'mysite.views.page_not_found' > handler500 = 'mysite.views.server_error' > > views.py:

Re: flatpage for 404

2008-06-21 Thread mark
I think I found an acceptable solution now. I added the following to the files in my project directory... urls.py: ... handler404 = 'mysite.views.page_not_found' handler500 = 'mysite.views.server_error' views.py: from django.contrib.flatpages.views import flatpage ... def page_not_found(request)

Re: flatpage for 404

2008-06-21 Thread mark
> Lookup django.conf.urls.defaults module how handler404 is defined and > override it by assigning your view function in your application hmm, here is what the documentation says: >>>A string representing the full Python import path to the view that should be >>>called if none of the URL patter

Re: flatpage for 404

2008-06-21 Thread Peter Melvyn
On 6/21/08, mark <[EMAIL PROTECTED]> wrote: > I do not like the django default behaviour for 404 pages since I do > not want to create a 404.html template. I like my flatpages a lot > especially the default.html template I created earlier. Therefore I > would like django to use my default.htm

flatpage for 404

2008-06-21 Thread mark
Hi there, I do not like the django default behaviour for 404 pages since I do not want to create a 404.html template. I like my flatpages a lot especially the default.html template I created earlier. Therefore I would like django to use my default.html template to display the 404 and use the '/40