Module ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias identifier ImportFrom alias ImportFrom alias ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body If CompareNotIn Str AttributeLoad NameLoad attr body Raise NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str TryExcept body Return AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Assign NameStore Str Assign NameStore CompareIn NameLoad AttributeLoad NameLoad attr If UnaryOpNot NameLoad body For NameStore AttributeLoad NameLoad attr body If Call NameLoad Call NameLoad NameLoad NameLoad body Assign NameStore NameLoad Break Expr Call NameLoad NameLoad Str NameLoad Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword AttributeLoad NameLoad attr keyword NameLoad If NameLoad body Assign NameStore SubscriptLoad NameLoad Index Num Expr Call NameLoad NameLoad Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad orelse Return If BoolOpAnd AttributeLoad NameLoad attr UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr body Return Call NameLoad Call AttributeLoad NameLoad attr If CompareNotEq NameLoad NameLoad body TryExcept body Return Call NameLoad NameLoad NameLoad NameLoad handlers ExceptHandler type NameLoad body If CompareNotEq AttributeLoad NameLoad attr NameLoad body Raise Assign NameStore Dict Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index BinOpMod Str AttributeLoad NameLoad attr For TupleStore NameStore NameStore BinOpAdd NameLoad NameLoad body If BoolOpAnd NameLoad UnaryOpNot AttributeLoad NameLoad attr body Continue Assign NameStore Call NameLoad NameLoad NameLoad If Call NameLoad NameLoad NameLoad body Return NameLoad orelse If NameLoad body TryExcept body For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body If CompareNotIn NameLoad NameLoad body Assign SubscriptStore NameLoad Index NameLoad NameLoad handlers ExceptHandler type TupleLoad NameLoad NameLoad body Assign NameStore BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore BinOpMod Str TupleLoad NameLoad Call NameLoad NameLoad Raise Call NameLoad NameLoad Return Call NameLoad NameLoad NameLoad keyword NameLoad decorator_list decorator_list
N/A __future__ unicode_literals django.contrib.auth.views redirect_to_login django.core.exceptions MiddlewareNotUsed django.http HttpResponse Http404 mezzanine.conf settings mezzanine.pages context_processors page_processors mezzanine.pages.models Page mezzanine.pages.views page page_view mezzanine.utils.importing import_dotted_path mezzanine.utils.urls path_to_slug PageMiddleware N/A object N/A N/A 
    Adds a page to the template context for the current response.

    If no page matches the URL, and the view function is not the
    fall-back page view, we try and find the page with the deepest
    URL that matches within the current URL, as in this situation,
    the app's urlpattern is considered to sit "under" a given page,
    for example the blog page will be used when individual blog
    posts are viewed. We want the page for things like breadcrumb
    nav, and page processors, but most importantly so the page's
    ``login_required`` flag can be honoured.

    If a page is matched, and the fall-back page view is called,
    we add the page to the ``extra_context`` arg of the page view,
    which it can then use to choose which template to use.

    In either case, we add the page to the response's template
    context, so that the current page is always available.
     __init__ N/A N/A self N/A N/A N/A N/A mezzanine.pages N/A settings INSTALLED_APPS N/A N/A MiddlewareNotUsed N/A installed N/A N/A cls N/A N/A N/A 
        Used in ``mezzanine.pages.views.page`` to ensure
        ``PageMiddleware`` or a subclass has been installed. We cache
        the result on the ``PageMiddleware._installed`` to only run
        this once. Short path is to just check for the dotted path to
        ``PageMiddleware`` in ``MIDDLEWARE_CLASSES`` - if not found,
        we need to load each middleware class to match a subclass.
         N/A N/A N/A N/A cls _installed N/A N/A N/A AttributeError N/A N/A name mezzanine.pages.middleware.PageMiddleware N/A installed N/A name N/A settings MIDDLEWARE_CLASSES N/A N/A installed N/A N/A name N/A settings MIDDLEWARE_CLASSES N/A N/A N/A issubclass N/A import_dotted_path name cls N/A N/A installed True N/A N/A N/A setattr cls _installed installed N/A installed N/A classmethod process_view N/A N/A self request view_func view_args view_kwargs N/A N/A N/A 
        Per-request mechanics for the current page object.
         N/A slug N/A path_to_slug N/A request path_info N/A pages N/A N/A N/A Page objects with_ascendants_for_slug slug for_user N/A request user include_login_required True N/A pages N/A N/A page N/A pages N/A 0 N/A N/A setattr request page page N/A N/A N/A context_processors page request N/A N/A N/A N/A N/A page login_required N/A N/A N/A N/A request user is_authenticated N/A N/A N/A redirect_to_login N/A N/A request get_full_path N/A N/A view_func page_view N/A N/A N/A N/A N/A view_func request view_args view_kwargs N/A N/A N/A Http404 N/A N/A N/A N/A page slug slug N/A N/A N/A extra_context N/A N/A model_processors N/A N/A page_processors processors N/A N/A page content_model N/A slug_processors N/A N/A page_processors processors N/A N/A slug:%s N/A page slug N/A N/A processor exact_page N/A slug_processors model_processors N/A N/A N/A exact_page N/A N/A page is_current N/A N/A N/A processor_response N/A processor request page N/A N/A isinstance processor_response HttpResponse N/A N/A processor_response N/A N/A processor_response N/A N/A N/A N/A N/A k v N/A N/A processor_response items N/A N/A N/A k extra_context N/A N/A N/A extra_context N/A k v N/A N/A N/A N/A TypeError ValueError N/A N/A name N/A %s.%s N/A N/A processor __module__ N/A processor __name__ N/A error N/A The page processor %s returned %s but must return HttpResponse or dict. N/A name N/A type processor_response N/A N/A ValueError error N/A N/A page_view request slug extra_context extra_context N/A N/A