Pylons - Changing the regular 404 Not Found page to a custom one

How do I change the regular 404 page generated by Pylons to my own custom-made 404 page?

Thanks in advance, John


From what I know, you have to edit your ErrorController in appname/controllers/ and change the "document" method.

def document(self):
    return render('/my_errors/blah.mako')

Read that for more details:

Just create your view and use add_notfound_view configuration method to configure it.


Need Your Help

How to merge 2 XML files in to one with #Java Script or #XSL ?

java xml xslt jscript

I have 02 XML files, I need to generate a report with the data combination of both the files. either Out put as an HTML file or Single XML with using XSLT

WPF DataGrid sort by ComboBox field

wpf datagrid combobox sorting

I have WPF datagrid with combox column (ID is real value, Desc is displayed value) and when I click on header of that column automatically sorts by real value (ID). I want to sort by displayed valu...