Passing a dict to default page_not_found view
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 is load a random message in the 404.html. There may be a simpler solution for that.
Many thanks in advance.
Best wishes,
Masud
--
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 django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home