Thursday, September 9, 2010

404 handler not working on live hosting environment

Hi folks,

We are in the process of deploying a Django app to WebFaction hosting where we use Apache to serve it.

 - We are using Django's handler404 callable in our URLConf, where we instruct Django to pass 404 errors to a custom view.
 - In turn, the view fetches region-specific data and passes it in a context when it loads the 404 template

All this works fine on the development environment, but when we test it on our live application the custom 404 template is loaded with data missing. This seems to indicate that something is bypassing handler404 view and simply loading the html template.

What could this be and how would one tackle this issue? Any ideas welcomed.

Thanks!

--
Regards,
Sithembewena Lloyd Dube
http://www.lloyddube.com

--
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.

No comments:

Post a Comment