Re: Passing a dict to default page_not_found view

2012-07-21 Thread Russell Keith-Magee
On Sat, Jul 21, 2012 at 7:44 PM, Masud Khokhar wrote: > Hi Russell, > > Many thanks for your reply. The template tag approach looks good and I will > try to use this one. > > One further question. If I am using the @register.simple_tag decorator, can > I create the view

Re: Passing a dict to default page_not_found view

2012-07-21 Thread Masud Khokhar
Hi Russell, Many thanks for your reply. The template tag approach looks good and I will try to use this one. One further question. If I am using the @register.simple_tag decorator, can I create the view in the views.py file or do I have to create a templatetags directory and follow the full

Re: Passing a dict to default page_not_found view

2012-07-21 Thread Russell Keith-Magee
On Sat, Jul 21, 2012 at 10:09 AM, Masud Khokhar wrote: > Hi all, > > I am using the default 404 view that Django uses. I have created a custom > 404.html page in my templates directory which automatically gets loaded. Is > it possible for this page to load a python

Passing a dict to default page_not_found view

2012-07-20 Thread Masud Khokhar
Hi all, I am using the default 404 view that Django uses. I have created a custom 404.html page in my templates directory which automatically gets loaded. Is it possible for this page to load a python dictionary or do I need to raise http404 myself for that? In essence, what I am trying to do