Module ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias alias ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad Str Assign AttributeStore NameLoad attr Call NameLoad Str Assign AttributeStore NameLoad attr Call NameLoad Str Assign AttributeStore NameLoad attr Call NameLoad Str Assign AttributeStore NameLoad attr Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body If UnaryOpNot AttributeLoad NameLoad attr body Return If BoolOpOr CompareIn AttributeLoad NameLoad attr AttributeLoad NameLoad attr BoolOpAnd Call NameLoad NameLoad Str NameLoad CompareIn BinOpMod Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr body ImportFrom alias Return Call NameLoad NameLoad AttributeLoad NameLoad attr Assign NameStore ListLoad Str Str Str Str Assign NameStore ListLoad Str Str Str Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr If CompareEq NameLoad Str body Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore BinOpMod Str TupleLoad AttributeLoad NameLoad attr NameLoad If AttributeLoad NameLoad attr body AugAssignAdd NameStore AttributeLoad NameLoad attr If CompareIn BinOpMod Str AttributeLoad NameLoad attr NameLoad body Return If AttributeLoad NameLoad attr body AugAssignAdd NameStore AttributeLoad NameLoad attr If BoolOpOr CompareIn NameLoad NameLoad CompareIn NameLoad NameLoad body Return If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr body Return Call NameLoad Call NameLoad Str If AttributeLoad AttributeLoad NameLoad attr attr body Return If Call AttributeLoad AttributeLoad NameLoad attr attr Str body Return Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr BinOpBitOr Call NameLoad keyword AttributeLoad NameLoad attr Call NameLoad keyword AttributeLoad AttributeLoad NameLoad attr attr attr Str If Call NameLoad ListComp AttributeLoad NameLoad attr comprehension NameStore NameLoad AttributeLoad NameLoad attr body Assign SubscriptStore AttributeLoad NameLoad attr Index Str NameLoad Return Assign NameStore ListComp NameLoad comprehension NameStore NameLoad BoolOpAnd AttributeLoad NameLoad attr UnaryOpNot AttributeLoad NameLoad attr If NameLoad body For NameStore NameLoad body If BoolOpAnd AttributeLoad NameLoad attr CompareEq AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad Expr Call AttributeLoad NameLoad attr Assign SubscriptStore AttributeLoad NameLoad attr Index Str NameLoad Assign AttributeStore NameLoad attr NameLoad Return If NameLoad body Assign NameStore SubscriptLoad NameLoad Index Num Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad Expr Call AttributeLoad NameLoad attr Assign SubscriptStore AttributeLoad NameLoad attr Index Str NameLoad Return If UnaryOpNot NameLoad body If UnaryOpNot NameLoad body Assign NameStore Call NameLoad keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Return Call NameLoad AttributeLoad NameLoad attr TryExcept body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword Num handlers ExceptHandler type AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr NameLoad Return Call NameLoad Call NameLoad Str keyword TupleLoad NameLoad Assign NameStore Call NameLoad If AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr NameLoad Return Call NameLoad Call NameLoad Str keyword TupleLoad NameLoad orelse Assign NameStore Call NameLoad keyword AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword NameLoad AugAssignSub AttributeStore NameLoad attr Num Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Return decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body If Call NameLoad NameLoad Str NameLoad body If AttributeLoad NameLoad attr body Assign NameStore Str orelse Assign NameStore Call AttributeLoad Str attr Str Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If Call NameLoad NameLoad Str body Return AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call NameLoad AttributeLoad NameLoad attr Return AttributeLoad NameLoad attr decorator_list NameLoad decorator_list
N/A __future__ unicode_literals django.utils six django.conf settings django.core.urlresolvers reverse resolve django.shortcuts redirect django.db.models Q hunger.models InvitationCode Invitation hunger.utils setting now BetaMiddleware N/A object N/A N/A 
    Add this to your ``MIDDLEWARE_CLASSES`` make all views except for
    those in the account application require that a user be logged in.
    This can be a quick and easy way to restrict views on your site,
    particularly if you remove the ability to create accounts.

    **Settings:**

    ``HUNGER_ENABLE_BETA``
        Whether or not the beta middleware should be used. If set to
        `False` the BetaMiddleware middleware will be ignored and the
        request will be returned. This is useful if you want to
        disable privatebeta on a development machine. Default is
        `True`.

    ``HUNGER_ALWAYS_ALLOW_VIEWS``
        A list of full view names that should always pass through.

    ``HUNGER_ALWAYS_ALLOW_MODULES``
        A list of modules that should always pass through.  All
        views in ``django.contrib.auth.views``, ``django.views.static``
        and ``hunger.views`` will pass through.

    ``HUNGER_REDIRECT``
        The redirect when not in beta.
     __init__ N/A N/A self N/A N/A N/A N/A self enable_beta N/A setting HUNGER_ENABLE N/A N/A self always_allow_views N/A setting HUNGER_ALWAYS_ALLOW_VIEWS N/A N/A self always_allow_modules N/A setting HUNGER_ALWAYS_ALLOW_MODULES N/A N/A self redirect N/A setting HUNGER_REDIRECT N/A N/A self allow_flatpages N/A setting HUNGER_ALLOW_FLATPAGES N/A process_view N/A N/A self request view_func view_args view_kwargs N/A N/A N/A N/A N/A self enable_beta N/A N/A N/A N/A N/A N/A request path N/A self allow_flatpages N/A N/A getattr settings APPEND_SLASH True N/A N/A %s/ N/A request path N/A self allow_flatpages N/A django.contrib.flatpages.views flatpage N/A N/A flatpage request N/A request path_info N/A whitelisted_modules N/A django.contrib.auth.views django.contrib.admin.sites django.views.static django.contrib.staticfiles.views N/A whitelisted_views N/A hunger.views.NotBetaView hunger.views.verify_invite hunger.views.InvalidView N/A short_name N/A N/A view_func __class__ __name__ N/A N/A short_name function N/A N/A short_name N/A view_func __name__ N/A view_name N/A N/A self _get_view_name request N/A full_view_name N/A %s.%s N/A N/A view_func __module__ short_name N/A N/A self always_allow_modules N/A N/A whitelisted_modules N/A self always_allow_modules N/A N/A N/A %s N/A view_func __module__ whitelisted_modules N/A N/A N/A N/A self always_allow_views N/A N/A whitelisted_views N/A self always_allow_views N/A N/A N/A full_view_name whitelisted_views N/A view_name whitelisted_views N/A N/A N/A N/A N/A N/A N/A request user is_authenticated N/A N/A N/A redirect N/A setting LOGIN_URL N/A N/A N/A request user is_staff N/A N/A N/A N/A N/A N/A request session get hunger_in_beta N/A N/A N/A cookie_code N/A N/A N/A request COOKIES get hunger_code N/A invitations N/A N/A N/A N/A N/A Invitation objects filter N/A N/A Q user N/A request user N/A Q email N/A N/A request user email select_related code N/A N/A any N/A N/A i used N/A i invitations N/A i invited N/A N/A N/A N/A request session N/A hunger_in_beta True N/A N/A activates N/A i N/A i invitations N/A N/A i invited N/A N/A i used N/A cookie_code N/A N/A invitation activates N/A N/A N/A N/A invitation code N/A N/A N/A invitation code code cookie_code N/A N/A N/A invitation user N/A request user N/A N/A invitation used N/A now N/A N/A N/A invitation save N/A N/A N/A request session N/A hunger_in_beta True N/A N/A request _hunger_delete_cookie True N/A N/A activates N/A N/A invitation N/A activates N/A 0 N/A N/A invitation user N/A request user N/A N/A invitation used N/A now N/A N/A N/A invitation save N/A N/A N/A request session N/A hunger_in_beta True N/A N/A N/A cookie_code N/A N/A N/A invitations N/A N/A invitation N/A Invitation user N/A request user N/A N/A N/A invitation save N/A N/A redirect N/A self redirect N/A N/A N/A code N/A N/A N/A InvitationCode objects get code cookie_code num_invites__gt 0 N/A N/A N/A N/A InvitationCode DoesNotExist N/A N/A N/A request _hunger_delete_cookie True N/A N/A redirect N/A reverse hunger-invalid args N/A cookie_code N/A right_now N/A now N/A N/A code private N/A N/A N/A request _hunger_delete_cookie True N/A N/A redirect N/A reverse hunger-invalid args N/A cookie_code N/A N/A invitation N/A Invitation user N/A request user code code invited right_now used right_now N/A N/A code num_invites 1 N/A N/A N/A invitation save N/A N/A N/A code save N/A N/A process_response N/A N/A self request response N/A N/A N/A N/A getattr request _hunger_delete_cookie False N/A N/A N/A six PY3 N/A N/A code hunger_code N/A N/A code N/A N/A hunger_code encode utf-8 N/A N/A N/A response delete_cookie code N/A response N/A _get_view_name N/A N/A request N/A N/A N/A Return the urlpattern name. N/A N/A hasattr request resolver_match N/A N/A N/A N/A request resolver_match view_name N/A match N/A resolve N/A request path N/A N/A match url_name N/A staticmethod N/A