Views and decorators

Generic-views replacements

All views in the feincms.views.generic module are almost the same as their counterparts in django.views.generic (before class-based views came along), except that they add a feincms_page object to the context. Not recommended anymore because they are deprecated in Django. Use the feincms.context_processors.add_page_if_missing context processor instead.

Decorators

feincms.views.decorators.add_page_to_extra_context(view_func)

Adds the best-match page to the extra_context keyword argument. Mainly used to provide generic views which integrate into the page module.

feincms.views.decorators.standalone(view_func)

Marks the view method as standalone view; this means that HttpResponse objects returned from ApplicationContent are returned directly, without further processing.

Table Of Contents

Previous topic

Utilities

Next topic

Management commands

This Page