Quantcast
Viewing latest article 8
Browse Latest Browse All 10

Handling 404 Page on FeinCMS

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 [...] Related posts:
  1. Django Tutorial – Simple Notes Application
  2. A Quick Tutorial on Django MPTT
  3. Getting Started With Django-CMS

Viewing latest article 8
Browse Latest Browse All 10

Trending Articles