Module ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias ImportFrom alias alias alias ClassDef bases NameLoad body Expr Str Assign NameStore ListLoad Str Assign NameStore ListLoad Str Str FunctionDef arguments args NameParam defaults body Expr Str For NameStore AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str For NameStore AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call NameLoad Dict Str Str Str Str TryFinally body For TupleStore NameStore NameStore TupleLoad TupleLoad Num Str TupleLoad Num Str body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad BinOpMod Str NameLoad keyword NameLoad finalbody Expr Call NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Str NameLoad Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Num Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Str NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str decorator_list Call NameLoad keyword Str decorator_list
N/A __future__ absolute_import unicode_literals django.contrib.contenttypes.models ContentType django.test TestCase django.test.utils setup_test_template_loader restore_template_loaders override_settings models Author Article UrlArticle DefaultsTests N/A TestCase N/A N/A Test django views in django/views/defaults.py N/A fixtures N/A testdata.json N/A non_existing_urls N/A /views/non_existing_url/ /views/other_non_existing_url/ test_page_not_found N/A N/A self N/A N/A N/A A 404 status is returned by the page_not_found view N/A url N/A self non_existing_urls N/A N/A response N/A N/A N/A self client get url N/A N/A N/A self assertEqual N/A response status_code 404 N/A test_csrf_token_in_404 N/A N/A self N/A N/A N/A 
        The 404 page should have the csrf_token available in the context
         N/A url N/A self non_existing_urls N/A N/A response N/A N/A N/A self client get url N/A csrf_token N/A N/A response context N/A csrf_token N/A N/A N/A self assertNotEqual N/A str csrf_token NOTPROVIDED N/A N/A N/A self assertNotEqual N/A str csrf_token N/A test_server_error N/A N/A self N/A N/A N/A The server_error view raises a 500 status N/A response N/A N/A N/A self client get /views/server_error/ N/A N/A N/A self assertEqual N/A response status_code 500 N/A test_custom_templates N/A N/A self N/A N/A N/A 
        Test that 404.html and 500.html templates are picked by their respective
        handler.
         N/A N/A setup_test_template_loader N/A 404.html 500.html This is a test template for a 404 error. This is a test template for a 500 error. N/A N/A N/A N/A code url N/A N/A 404 /views/non_existing_url/ N/A 500 /views/server_error/ N/A N/A response N/A N/A N/A self client get url N/A N/A N/A self assertContains response N/A test template for a %d error code status_code code N/A N/A N/A restore_template_loaders N/A test_get_absolute_url_attributes N/A N/A self N/A N/A N/A A model can set attributes on the get_absolute_url method N/A N/A N/A self assertTrue N/A getattr N/A UrlArticle get_absolute_url purge False The attributes of the original get_absolute_url must be added. N/A article N/A N/A N/A UrlArticle objects get pk 1 N/A N/A N/A self assertTrue N/A getattr N/A article get_absolute_url purge False The attributes of the original get_absolute_url must be added. N/A test_default_content_type_is_text_html N/A N/A self N/A N/A N/A 
        Content-Type of the default error responses is text/html. Refs #20822.
         N/A response N/A N/A N/A self client get /views/raises400/ N/A N/A N/A self assertEqual N/A response N/A Content-Type text/html N/A response N/A N/A N/A self client get /views/raises403/ N/A N/A N/A self assertEqual N/A response N/A Content-Type text/html N/A response N/A N/A N/A self client get /views/non_existing_url/ N/A N/A N/A self assertEqual N/A response N/A Content-Type text/html N/A response N/A N/A N/A self client get /views/server_error/ N/A N/A N/A self assertEqual N/A response N/A Content-Type text/html N/A N/A override_settings DEFAULT_CONTENT_TYPE text/xml N/A