Module ImportFrom alias alias ImportFrom alias alias alias alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias ClassDef bases NameLoad NameLoad body FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call NameLoad keyword Str Expr Call AttributeLoad NameLoad attr keyword NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword Str keyword AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword Str keyword AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body If CompareIs NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad Return Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Str AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Str AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Str AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Str AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Str AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Str AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Str AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Str For NameStore Call NameLoad Num Num body With Call AttributeLoad NameLoad attr Num body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad BinOpMult NameLoad NameLoad BinOpMult AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Str Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign NameStore Call NameLoad Dict Str NameLoad Assign NameStore Call NameLoad Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign NameStore Call NameLoad Dict Str NameLoad Assign NameStore Call NameLoad Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Assign NameStore Call NameLoad Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Assign NameStore Call NameLoad Str With Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Index Str decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body If CompareIs NameLoad NameLoad body Assign NameStore Dict If NameLoad body If CompareIn Str NameLoad body Assign NameStore SubscriptLoad NameLoad Index Str orelse Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Dict Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str NameLoad AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Dict Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str NameLoad AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad For NameStore Call NameLoad Num Num body With Call AttributeLoad NameLoad attr Num body Assign NameStore Dict Str NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMult NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad BinOpMult AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign NameStore Dict Str NameLoad Assign NameStore Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Dict Assign NameStore Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Dict Assign NameStore Str With Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad decorator_list decorator_list
N/A __future__ absolute_import unicode_literals django.template Context RequestContext Template engines django.test TestCase wagtail.tests.testapp.models TestSetting wagtail.tests.utils WagtailTestUtils wagtail.wagtailcore.models Page Site TemplateTestCase N/A TestCase WagtailTestUtils N/A setUp N/A N/A self N/A N/A N/A root N/A N/A N/A Page objects first N/A other_home N/A Page title Other Root N/A N/A N/A root add_child instance other_home N/A N/A self default_site N/A N/A N/A Site objects get is_default_site True N/A N/A self other_site N/A N/A N/A Site objects create hostname other root_page other_home N/A N/A self test_setting N/A N/A N/A TestSetting objects create title Site title email initial@example.com site N/A self default_site N/A N/A self other_setting N/A N/A N/A TestSetting objects create title Other title email other@example.com site N/A self other_site N/A get_request N/A N/A self site N/A None N/A N/A N/A site None N/A N/A site N/A self default_site N/A request N/A N/A N/A self client get /test/ HTTP_HOST N/A site hostname N/A N/A request site site N/A request N/A render N/A N/A self request string context site N/A None None N/A N/A template N/A Template string N/A context N/A RequestContext request context N/A N/A N/A template render context N/A N/A TestContextProcessor N/A TemplateTestCase N/A test_accessing_setting N/A N/A self N/A N/A N/A  Check that the context processor works  N/A request N/A N/A self get_request N/A N/A N/A self assertEqual N/A N/A self render request {{ settings.tests.TestSetting.title }} N/A N/A self test_setting title N/A test_multisite N/A N/A self N/A N/A N/A  Check that the correct setting for the current site is returned  N/A request N/A N/A self get_request site N/A self default_site N/A N/A N/A self assertEqual N/A N/A self render request {{ settings.tests.TestSetting.title }} N/A N/A self test_setting title N/A request N/A N/A self get_request site N/A self other_site N/A N/A N/A self assertEqual N/A N/A self render request {{ settings.tests.TestSetting.title }} N/A N/A self other_setting title N/A test_model_case_insensitive N/A N/A self N/A N/A N/A  Model names should be case insensitive  N/A request N/A N/A self get_request N/A N/A N/A self assertEqual N/A N/A self render request {{ settings.tests.testsetting.title }} N/A N/A self test_setting title N/A N/A N/A self assertEqual N/A N/A self render request {{ settings.tests.TESTSETTING.title }} N/A N/A self test_setting title N/A N/A N/A self assertEqual N/A N/A self render request {{ settings.tests.TestSetting.title }} N/A N/A self test_setting title N/A N/A N/A self assertEqual N/A N/A self render request {{ settings.tests.tEstsEttIng.title }} N/A N/A self test_setting title N/A test_models_cached N/A N/A self N/A N/A N/A  Accessing a setting should only hit the DB once per render  N/A request N/A N/A self get_request N/A get_title {{ settings.tests.testsetting.title }} N/A i N/A range 1 4 N/A N/A N/A N/A self assertNumQueries 1 N/A N/A N/A N/A self assertEqual N/A N/A self render request N/A get_title i N/A N/A N/A self test_setting title i N/A N/A TestTemplateTag N/A TemplateTestCase N/A test_no_context_processor N/A N/A self N/A N/A N/A 
        Assert that not running the context processor means settings are not in
        the context, as expected.
         N/A template N/A Template {{ settings.tests.TestSetting.title }} N/A context N/A Context N/A N/A N/A self assertEqual N/A N/A template render context N/A test_get_settings_request_context N/A N/A self N/A N/A N/A  Check that the {% get_settings %} tag works  N/A request N/A N/A self get_request site N/A self other_site N/A context N/A Context N/A request request N/A template N/A Template {% load wagtailsettings_tags %}{% get_settings %}{{ settings.tests.testsetting.title}} N/A N/A N/A self assertEqual N/A N/A template render context N/A N/A self other_setting title N/A test_get_settings_request_context_use_default N/A N/A self N/A N/A N/A 
        Check that the {% get_settings use_default_site=True %} option
        overrides a request in the context.
         N/A request N/A N/A self get_request site N/A self other_site N/A context N/A Context N/A request request N/A template N/A Template {% load wagtailsettings_tags %}{% get_settings use_default_site=True %}{{ settings.tests.testsetting.title}} N/A N/A N/A self assertEqual N/A N/A template render context N/A N/A self test_setting title N/A test_get_settings_use_default N/A N/A self N/A N/A N/A 
        Check that the {% get_settings use_default_site=True %} option works
         N/A context N/A Context N/A template N/A Template {% load wagtailsettings_tags %}{% get_settings use_default_site=True %}{{ settings.tests.testsetting.title}} N/A N/A N/A self assertEqual N/A N/A template render context N/A N/A self test_setting title N/A test_get_settings_no_request_no_default N/A N/A self N/A N/A N/A 
        Check that the {% get_settings %} throws an error if it can not find a
        site to work with
         N/A context N/A Context N/A template N/A Template {% load wagtailsettings_tags %}{% get_settings %}{{ settings.tests.testsetting.title}} N/A N/A N/A self assertRaises RuntimeError N/A N/A N/A N/A template render context N/A N/A TestSettingsJinja N/A TemplateTestCase N/A setUp N/A N/A self N/A N/A N/A N/A N/A N/A super TestSettingsJinja self setUp N/A N/A self engine N/A engines N/A jinja2 N/A render N/A N/A self string context request_context N/A None True N/A N/A N/A context None N/A N/A context N/A N/A request_context N/A N/A N/A site context N/A N/A site N/A context N/A site N/A N/A site N/A N/A N/A Site objects get is_default_site True N/A request N/A N/A N/A self client get /test/ HTTP_HOST N/A site hostname N/A N/A request site site N/A N/A context N/A request request N/A template N/A N/A N/A self engine from_string string N/A N/A N/A template render context N/A test_accessing_setting N/A N/A self N/A N/A N/A  Check that the context processor works  N/A N/A N/A self assertEqual N/A N/A self render {{ settings("tests.TestSetting").title }} N/A N/A self test_setting title N/A test_multisite N/A N/A self N/A N/A N/A  Check that the correct setting for the current site is returned  N/A context N/A site N/A self default_site N/A N/A N/A self assertEqual N/A N/A self render {{ settings("tests.TestSetting").title }} context N/A N/A self test_setting title N/A context N/A site N/A self other_site N/A N/A N/A self assertEqual N/A N/A self render {{ settings("tests.TestSetting").title }} context N/A N/A self other_setting title N/A test_model_case_insensitive N/A N/A self N/A N/A N/A  Model names should be case insensitive  N/A N/A N/A self assertEqual N/A N/A self render {{ settings("tests.testsetting").title }} N/A N/A self test_setting title N/A N/A N/A self assertEqual N/A N/A self render {{ settings("tests.TESTSETTING").title }} N/A N/A self test_setting title N/A N/A N/A self assertEqual N/A N/A self render {{ settings("tests.TestSetting").title }} N/A N/A self test_setting title N/A N/A N/A self assertEqual N/A N/A self render {{ settings("tests.tEstsEttIng").title }} N/A N/A self test_setting title N/A test_models_cached N/A N/A self N/A N/A N/A  Accessing a setting should only hit the DB once per render  N/A get_title {{ settings("tests.testsetting").title }} N/A site N/A N/A N/A Site objects get is_default_site True N/A request N/A N/A N/A self client get /test/ HTTP_HOST N/A site hostname N/A N/A request site site N/A i N/A range 1 4 N/A N/A N/A N/A self assertNumQueries 1 N/A N/A context N/A request request N/A template N/A N/A N/A self engine from_string N/A get_title i N/A N/A N/A self assertEqual N/A N/A template render context N/A N/A N/A self test_setting title i N/A test_settings_use_default_site_override N/A N/A self N/A N/A N/A 
        Check that {{ settings(use_default_site=True) }} overrides a site in
        the context.
         N/A request N/A N/A self get_request site N/A self other_site N/A context N/A request request N/A template {{ settings("tests.testsetting", use_default_site=True).title }} N/A N/A N/A self assertEqual N/A N/A self render template context N/A N/A self test_setting title N/A test_settings_use_default_site N/A N/A self N/A N/A N/A 
        Check that the {{ settings(use_default_site=True) }} option works with
        no site in the context
         N/A context N/A N/A template {{ settings("tests.testsetting", use_default_site=True).title}} N/A N/A N/A self assertEqual N/A N/A self render template context request_context False N/A N/A self test_setting title N/A test_settings_no_request_no_use_default N/A N/A self N/A N/A N/A 
        Check that {{ settings }} throws an error if it can not find a
        site to work with
         N/A context N/A N/A template {{ settings("tests.testsetting").title}} N/A N/A N/A self assertRaises RuntimeError N/A N/A N/A N/A self render template context request_context False N/A N/A