If you add dynamic content such as FeinCMS navigation in your 404 page then you need custom 404 handler.
Create custom views for 404 page.
from django.shortcuts import render_to_response from django.template import RequestContext from feincms.module.page.models import Page def page_not_found(request, template_name='404.html'): page = Page.objects.best_match_for_request(request) return render_to_response(template_name, {'feincms_page' : page}, context_instance=RequestContext(request))
In urls.py add the following line :
handler404 = 'cms.views.page_not_found'That’s it.
Related posts:
- Getting Started With Django-CMS
- Django Tutorial – Simple Notes Application
- A Quick Tutorial on Django MPTT
- Receiving Email Using AppEngine and Django
- Using django-paypal IPN in Django 1.2
Tags: python