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):
    return flatpage(request, '/404/')

def server_error(request):
    return flatpage(request, '/500/')

I also created two flatpages '/404/' and '/500/'.

The only thing I do not like about the solution is that when I open a
page e.g. http://localhost:8080/crap/ Django comes up with the /404/
page but the browser shows the 'http://localhost:8080/crap/' url.

Cheets,
Mark
--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to