Module ImportFrom alias alias alias alias alias alias ImportFrom alias alias ImportFrom alias ImportFrom alias ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad keyword Dict Str TupleLoad Str Str keyword TupleLoad Str Str Str Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Str ClassDef bases body Assign NameStore Dict Str TupleLoad Str Str Assign NameStore TupleLoad Str Str Str decorator_list Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Str ClassDef bases NameLoad body Pass decorator_list Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body ClassDef bases NameLoad body ClassDef bases body Assign NameStore Dict Str TupleLoad Str Str Assign NameStore TupleLoad Str Str Str decorator_list decorator_list Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Str Expr Call AttributeLoad NameLoad attr Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Str decorator_list FunctionDef arguments args NameParam defaults body ClassDef bases NameLoad body ClassDef bases body Assign NameStore Dict Str TupleLoad Str Str Assign NameStore TupleLoad Str Str Str decorator_list decorator_list ClassDef bases NameLoad body ClassDef bases body Assign NameStore Dict Str TupleLoad Str Str Assign NameStore TupleLoad Str Str decorator_list decorator_list ClassDef bases NameLoad body ClassDef bases body Assign NameStore Dict Str TupleLoad Str Str Assign NameStore TupleLoad Str Str decorator_list decorator_list Assign NameStore Call NameLoad Assign NameStore Call NameLoad Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad BinOpAdd BinOpAdd AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Str ClassDef bases NameLoad body ClassDef bases body Assign NameStore Dict Str TupleLoad Str Str Assign NameStore TupleLoad Str Str decorator_list decorator_list Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Return Call NameLoad keyword Dict Str TupleLoad Str keyword TupleLoad Str decorator_list Assign NameStore Call NameLoad NameLoad decorator_list Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Str ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Return BinOpAdd AttributeLoad Call NameLoad NameLoad NameLoad attr Call NameLoad keyword Dict Str TupleLoad Str keyword TupleLoad Str decorator_list Assign NameStore Call NameLoad NameLoad decorator_list Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body ClassDef bases NameLoad body ClassDef bases body Assign NameStore Dict Str TupleLoad Str Str Assign NameStore TupleLoad Str Str Str decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Return BinOpAdd AttributeLoad Call NameLoad NameLoad NameLoad attr Call NameLoad keyword Dict Str TupleLoad Str keyword TupleLoad Str decorator_list Assign NameStore Call NameLoad NameLoad decorator_list Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body ClassDef bases NameLoad body ClassDef bases body Assign NameStore Dict Str TupleLoad Str Str Assign NameStore TupleLoad Str Str Str decorator_list decorator_list ClassDef bases NameLoad body Pass decorator_list Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Str ClassDef bases NameLoad body ClassDef bases body Assign NameStore Dict Str TupleLoad Str Str Assign NameStore TupleLoad Str Str decorator_list decorator_list Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body ClassDef bases NameLoad body ClassDef bases body Assign NameStore Dict Str TupleLoad Str Str Assign NameStore TupleLoad Str Str Str decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Return Call NameLoad keyword Dict Str TupleLoad Str keyword TupleLoad Str decorator_list Assign NameStore Call NameLoad NameLoad decorator_list ClassDef bases NameLoad body ClassDef bases body Assign NameStore Dict Str TupleLoad Str Assign NameStore TupleLoad Str decorator_list decorator_list Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Str ClassDef bases NameLoad body ClassDef bases body Assign NameStore NameLoad Assign NameStore Dict Str TupleLoad Str Str Assign NameStore TupleLoad Str Str decorator_list decorator_list Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body ClassDef bases NameLoad body ClassDef bases body Assign NameStore Dict Str TupleLoad Str Str Assign NameStore TupleLoad Str Str Str decorator_list decorator_list ClassDef bases NameLoad body ClassDef bases body Assign NameStore NameLoad Assign NameStore Dict Str TupleLoad Str Str Assign NameStore TupleLoad Str Str decorator_list decorator_list Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body ClassDef bases NameLoad body ClassDef bases body Assign NameStore Dict Str TupleLoad Str Str Assign NameStore TupleLoad Str Str Str decorator_list decorator_list ClassDef bases NameLoad body ClassDef bases body Assign NameStore TupleLoad Str Assign NameStore Dict Str TupleLoad Str Str Assign NameStore TupleLoad Str Str decorator_list decorator_list Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body ClassDef bases NameLoad body ClassDef bases body Assign NameStore Dict Str Str Str TupleLoad Str Str TupleLoad Str TupleLoad Str Assign NameStore TupleLoad Str Str decorator_list decorator_list Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body ClassDef bases NameLoad body ClassDef bases body Assign NameStore Dict Str TupleLoad Str Str Assign NameStore TupleLoad Str Str Str decorator_list decorator_list ClassDef bases NameLoad body ClassDef bases body Assign NameStore Dict Str TupleLoad Str Str Assign NameStore TupleLoad Str Str decorator_list decorator_list ClassDef bases NameLoad body ClassDef bases body Assign NameStore Dict Str TupleLoad Str Str Assign NameStore TupleLoad Str Str decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults NameLoad body Assign NameStore ListLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad decorator_list decorator_list Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body ClassDef bases NameLoad body ClassDef bases body Assign NameStore Dict Str TupleLoad Str Str Assign NameStore TupleLoad Str Str Str decorator_list decorator_list ClassDef bases NameLoad body ClassDef bases body Assign NameStore Dict Str TupleLoad Str Str Assign NameStore TupleLoad Str Str decorator_list decorator_list ClassDef bases NameLoad body ClassDef bases body Assign NameStore Dict Str TupleLoad Str Str Assign NameStore TupleLoad Str Str decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore Call NameLoad keyword Num keyword Call NameLoad Assign NameStore Call NameLoad keyword Num keyword Call NameLoad decorator_list Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Str ClassDef bases NameLoad body Assign NameStore Call NameLoad keyword Num keyword Call NameLoad decorator_list Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad BinOpAdd AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str ClassDef bases NameLoad body Assign NameStore Call NameLoad keyword Num keyword Call NameLoad Assign NameStore Call NameLoad keyword Num keyword Call NameLoad ClassDef bases body Assign NameStore TupleLoad Str Assign NameStore Dict Str TupleLoad Str decorator_list decorator_list Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call NameLoad Str attr Call NameLoad Dict Str NameLoad Str decorator_list decorator_list Call NameLoad keyword NameLoad keyword Str ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad keyword Dict Str TupleLoad Str Str keyword TupleLoad Str Str Str Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Str ClassDef bases body Assign NameStore Dict Str TupleLoad Str Str Assign NameStore TupleLoad Str Str Str decorator_list Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Str ClassDef bases NameLoad body Pass decorator_list Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body ClassDef bases NameLoad body ClassDef bases body Assign NameStore Dict Str TupleLoad Str Str Assign NameStore TupleLoad Str Str Str decorator_list decorator_list Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Str Expr Call AttributeLoad NameLoad attr Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Str decorator_list FunctionDef arguments args NameParam defaults body ClassDef bases NameLoad body ClassDef bases body Assign NameStore Dict Str TupleLoad Str Str Assign NameStore TupleLoad Str Str Str decorator_list decorator_list ClassDef bases NameLoad body ClassDef bases body Assign NameStore Dict Str TupleLoad Str Str Assign NameStore TupleLoad Str Str decorator_list decorator_list ClassDef bases NameLoad body ClassDef bases body Assign NameStore Dict Str TupleLoad Str Str Assign NameStore TupleLoad Str Str decorator_list decorator_list Assign NameStore Call NameLoad Assign NameStore Call NameLoad Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad BinOpAdd BinOpAdd AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Str ClassDef bases NameLoad body ClassDef bases body Assign NameStore Dict Str TupleLoad Str Str Assign NameStore TupleLoad Str Str decorator_list decorator_list Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Return Call NameLoad keyword Dict Str TupleLoad Str keyword TupleLoad Str decorator_list Assign NameStore Call NameLoad NameLoad decorator_list Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Str ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Return BinOpAdd AttributeLoad Call NameLoad NameLoad NameLoad attr Call NameLoad keyword Dict Str TupleLoad Str keyword TupleLoad Str decorator_list Assign NameStore Call NameLoad NameLoad decorator_list Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body ClassDef bases NameLoad body ClassDef bases body Assign NameStore Dict Str TupleLoad Str Str Assign NameStore TupleLoad Str Str Str decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Return BinOpAdd AttributeLoad Call NameLoad NameLoad NameLoad attr Call NameLoad keyword Dict Str TupleLoad Str keyword TupleLoad Str decorator_list Assign NameStore Call NameLoad NameLoad decorator_list Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body ClassDef bases NameLoad body ClassDef bases body Assign NameStore Dict Str TupleLoad Str Str Assign NameStore TupleLoad Str Str Str decorator_list decorator_list ClassDef bases NameLoad body Pass decorator_list Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Str ClassDef bases NameLoad body ClassDef bases body Assign NameStore Dict Str TupleLoad Str Str Assign NameStore TupleLoad Str Str decorator_list decorator_list Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body ClassDef bases NameLoad body ClassDef bases body Assign NameStore Dict Str TupleLoad Str Str Assign NameStore TupleLoad Str Str Str decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Return Call NameLoad keyword Dict Str TupleLoad Str keyword TupleLoad Str decorator_list Assign NameStore Call NameLoad NameLoad decorator_list ClassDef bases NameLoad body ClassDef bases body Assign NameStore Dict Str TupleLoad Str Assign NameStore TupleLoad Str decorator_list decorator_list Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Str ClassDef bases NameLoad body ClassDef bases body Assign NameStore NameLoad Assign NameStore Dict Str TupleLoad Str Str Assign NameStore TupleLoad Str Str decorator_list decorator_list Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body ClassDef bases NameLoad body ClassDef bases body Assign NameStore Dict Str TupleLoad Str Str Assign NameStore TupleLoad Str Str Str decorator_list decorator_list ClassDef bases NameLoad body ClassDef bases body Assign NameStore NameLoad Assign NameStore Dict Str TupleLoad Str Str Assign NameStore TupleLoad Str Str decorator_list decorator_list Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body ClassDef bases NameLoad body ClassDef bases body Assign NameStore Dict Str TupleLoad Str Str Assign NameStore TupleLoad Str Str Str decorator_list decorator_list ClassDef bases NameLoad body ClassDef bases body Assign NameStore TupleLoad Str Assign NameStore Dict Str TupleLoad Str Str Assign NameStore TupleLoad Str Str decorator_list decorator_list Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body ClassDef bases NameLoad body ClassDef bases body Assign NameStore Dict Str Str Str TupleLoad Str Str TupleLoad Str TupleLoad Str Assign NameStore TupleLoad Str Str decorator_list decorator_list Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body ClassDef bases NameLoad body ClassDef bases body Assign NameStore Dict Str TupleLoad Str Str Assign NameStore TupleLoad Str Str Str decorator_list decorator_list ClassDef bases NameLoad body ClassDef bases body Assign NameStore Dict Str TupleLoad Str Str Assign NameStore TupleLoad Str Str decorator_list decorator_list ClassDef bases NameLoad body ClassDef bases body Assign NameStore Dict Str TupleLoad Str Str Assign NameStore TupleLoad Str Str decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults NameLoad body Assign NameStore ListLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad decorator_list decorator_list Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body ClassDef bases NameLoad body ClassDef bases body Assign NameStore Dict Str TupleLoad Str Str Assign NameStore TupleLoad Str Str Str decorator_list decorator_list ClassDef bases NameLoad body ClassDef bases body Assign NameStore Dict Str TupleLoad Str Str Assign NameStore TupleLoad Str Str decorator_list decorator_list ClassDef bases NameLoad body ClassDef bases body Assign NameStore Dict Str TupleLoad Str Str Assign NameStore TupleLoad Str Str decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore Call NameLoad keyword Num keyword Call NameLoad Assign NameStore Call NameLoad keyword Num keyword Call NameLoad decorator_list Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Str ClassDef bases NameLoad body Assign NameStore Call NameLoad keyword Num keyword Call NameLoad decorator_list Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad BinOpAdd AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str ClassDef bases NameLoad body Assign NameStore Call NameLoad keyword Num keyword Call NameLoad Assign NameStore Call NameLoad keyword Num keyword Call NameLoad ClassDef bases body Assign NameStore TupleLoad Str Assign NameStore Dict Str TupleLoad Str decorator_list decorator_list Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call NameLoad Str attr Call NameLoad Dict Str NameLoad Str decorator_list decorator_list Call NameLoad keyword Str keyword Str
N/A django.forms TextInput Media TextInput CharField Form MultiWidget django.template Template Context django.test TestCase django.test.utils override_settings FormsMediaTestCase N/A TestCase N/A N/A Tests for the media handling on widgets and forms test_construction N/A N/A self N/A N/A N/A m N/A Media css N/A all N/A path/to/css1 /path/to/css2 js N/A /path/to/js1 http://media.other.com/path/to/js2 https://secure.other.com/path/to/js3 N/A N/A N/A self assertEqual N/A str m <link href="http://media.example.com/media/path/to/css1" type="text/css" media="all" rel="stylesheet" />
<link href="/path/to/css2" type="text/css" media="all" rel="stylesheet" />
<script type="text/javascript" src="/path/to/js1"></script>
<script type="text/javascript" src="http://media.other.com/path/to/js2"></script>
<script type="text/javascript" src="https://secure.other.com/path/to/js3"></script> Foo N/A N/A N/A css N/A all N/A path/to/css1 /path/to/css2 N/A js N/A /path/to/js1 http://media.other.com/path/to/js2 https://secure.other.com/path/to/js3 N/A N/A m3 N/A Media Foo N/A N/A N/A self assertEqual N/A str m3 <link href="http://media.example.com/media/path/to/css1" type="text/css" media="all" rel="stylesheet" />
<link href="/path/to/css2" type="text/css" media="all" rel="stylesheet" />
<script type="text/javascript" src="/path/to/js1"></script>
<script type="text/javascript" src="http://media.other.com/path/to/js2"></script>
<script type="text/javascript" src="https://secure.other.com/path/to/js3"></script> MyWidget N/A TextInput N/A N/A N/A N/A w N/A MyWidget N/A N/A N/A self assertEqual N/A str N/A w media N/A test_media_dsl N/A N/A self N/A N/A MyWidget1 N/A TextInput N/A Media N/A N/A N/A css N/A all N/A path/to/css1 /path/to/css2 N/A js N/A /path/to/js1 http://media.other.com/path/to/js2 https://secure.other.com/path/to/js3 N/A N/A N/A w1 N/A MyWidget1 N/A N/A N/A self assertEqual N/A str N/A w1 media <link href="http://media.example.com/media/path/to/css1" type="text/css" media="all" rel="stylesheet" />
<link href="/path/to/css2" type="text/css" media="all" rel="stylesheet" />
<script type="text/javascript" src="/path/to/js1"></script>
<script type="text/javascript" src="http://media.other.com/path/to/js2"></script>
<script type="text/javascript" src="https://secure.other.com/path/to/js3"></script> N/A N/A N/A self assertEqual N/A str N/A N/A w1 media N/A css <link href="http://media.example.com/media/path/to/css1" type="text/css" media="all" rel="stylesheet" />
<link href="/path/to/css2" type="text/css" media="all" rel="stylesheet" /> N/A N/A N/A self assertEqual N/A str N/A N/A w1 media N/A js <script type="text/javascript" src="/path/to/js1"></script>
<script type="text/javascript" src="http://media.other.com/path/to/js2"></script>
<script type="text/javascript" src="https://secure.other.com/path/to/js3"></script> N/A test_combine_media N/A N/A self N/A N/A MyWidget1 N/A TextInput N/A Media N/A N/A N/A css N/A all N/A path/to/css1 /path/to/css2 N/A js N/A /path/to/js1 http://media.other.com/path/to/js2 https://secure.other.com/path/to/js3 N/A N/A MyWidget2 N/A TextInput N/A Media N/A N/A N/A css N/A all N/A /path/to/css2 /path/to/css3 N/A js N/A /path/to/js1 /path/to/js4 N/A N/A MyWidget3 N/A TextInput N/A Media N/A N/A N/A css N/A all N/A /path/to/css3 path/to/css1 N/A js N/A /path/to/js1 /path/to/js4 N/A N/A N/A w1 N/A MyWidget1 N/A w2 N/A MyWidget2 N/A w3 N/A MyWidget3 N/A N/A N/A self assertEqual N/A str N/A N/A N/A w1 media N/A w2 media N/A w3 media <link href="http://media.example.com/media/path/to/css1" type="text/css" media="all" rel="stylesheet" />
<link href="/path/to/css2" type="text/css" media="all" rel="stylesheet" />
<link href="/path/to/css3" type="text/css" media="all" rel="stylesheet" />
<script type="text/javascript" src="/path/to/js1"></script>
<script type="text/javascript" src="http://media.other.com/path/to/js2"></script>
<script type="text/javascript" src="https://secure.other.com/path/to/js3"></script>
<script type="text/javascript" src="/path/to/js4"></script> N/A N/A N/A self assertEqual N/A str N/A w1 media <link href="http://media.example.com/media/path/to/css1" type="text/css" media="all" rel="stylesheet" />
<link href="/path/to/css2" type="text/css" media="all" rel="stylesheet" />
<script type="text/javascript" src="/path/to/js1"></script>
<script type="text/javascript" src="http://media.other.com/path/to/js2"></script>
<script type="text/javascript" src="https://secure.other.com/path/to/js3"></script> MyWidget4 N/A TextInput N/A Media N/A N/A N/A css N/A all N/A /path/to/css1 /path/to/css1 N/A js N/A /path/to/js1 /path/to/js1 N/A N/A N/A w4 N/A MyWidget4 N/A N/A N/A self assertEqual N/A str N/A w4 media <link href="/path/to/css1" type="text/css" media="all" rel="stylesheet" />
<script type="text/javascript" src="/path/to/js1"></script> N/A test_media_property N/A N/A self N/A N/A MyWidget4 N/A TextInput N/A _media N/A N/A self N/A N/A N/A N/A Media css N/A all N/A /some/path js N/A /some/js N/A N/A media N/A property _media N/A N/A w4 N/A MyWidget4 N/A N/A N/A self assertEqual N/A str N/A w4 media <link href="/some/path" type="text/css" media="all" rel="stylesheet" />
<script type="text/javascript" src="/some/js"></script> MyWidget5 N/A MyWidget4 N/A _media N/A N/A self N/A N/A N/A N/A N/A N/A super MyWidget5 self media N/A Media css N/A all N/A /other/path js N/A /other/js N/A N/A media N/A property _media N/A N/A w5 N/A MyWidget5 N/A N/A N/A self assertEqual N/A str N/A w5 media <link href="/some/path" type="text/css" media="all" rel="stylesheet" />
<link href="/other/path" type="text/css" media="all" rel="stylesheet" />
<script type="text/javascript" src="/some/js"></script>
<script type="text/javascript" src="/other/js"></script> N/A test_media_property_parent_references N/A N/A self N/A N/A MyWidget1 N/A TextInput N/A Media N/A N/A N/A css N/A all N/A path/to/css1 /path/to/css2 N/A js N/A /path/to/js1 http://media.other.com/path/to/js2 https://secure.other.com/path/to/js3 N/A N/A MyWidget6 N/A MyWidget1 N/A _media N/A N/A self N/A N/A N/A N/A N/A N/A super MyWidget6 self media N/A Media css N/A all N/A /other/path js N/A /other/js N/A N/A media N/A property _media N/A N/A w6 N/A MyWidget6 N/A N/A N/A self assertEqual N/A str N/A w6 media <link href="http://media.example.com/media/path/to/css1" type="text/css" media="all" rel="stylesheet" />
<link href="/path/to/css2" type="text/css" media="all" rel="stylesheet" />
<link href="/other/path" type="text/css" media="all" rel="stylesheet" />
<script type="text/javascript" src="/path/to/js1"></script>
<script type="text/javascript" src="http://media.other.com/path/to/js2"></script>
<script type="text/javascript" src="https://secure.other.com/path/to/js3"></script>
<script type="text/javascript" src="/other/js"></script> N/A test_media_inheritance N/A N/A self N/A N/A MyWidget1 N/A TextInput N/A Media N/A N/A N/A css N/A all N/A path/to/css1 /path/to/css2 N/A js N/A /path/to/js1 http://media.other.com/path/to/js2 https://secure.other.com/path/to/js3 N/A N/A MyWidget7 N/A MyWidget1 N/A N/A N/A N/A w7 N/A MyWidget7 N/A N/A N/A self assertEqual N/A str N/A w7 media <link href="http://media.example.com/media/path/to/css1" type="text/css" media="all" rel="stylesheet" />
<link href="/path/to/css2" type="text/css" media="all" rel="stylesheet" />
<script type="text/javascript" src="/path/to/js1"></script>
<script type="text/javascript" src="http://media.other.com/path/to/js2"></script>
<script type="text/javascript" src="https://secure.other.com/path/to/js3"></script> MyWidget8 N/A MyWidget1 N/A Media N/A N/A N/A css N/A all N/A /path/to/css3 path/to/css1 N/A js N/A /path/to/js1 /path/to/js4 N/A N/A N/A w8 N/A MyWidget8 N/A N/A N/A self assertEqual N/A str N/A w8 media <link href="http://media.example.com/media/path/to/css1" type="text/css" media="all" rel="stylesheet" />
<link href="/path/to/css2" type="text/css" media="all" rel="stylesheet" />
<link href="/path/to/css3" type="text/css" media="all" rel="stylesheet" />
<script type="text/javascript" src="/path/to/js1"></script>
<script type="text/javascript" src="http://media.other.com/path/to/js2"></script>
<script type="text/javascript" src="https://secure.other.com/path/to/js3"></script>
<script type="text/javascript" src="/path/to/js4"></script> N/A test_media_inheritance_from_property N/A N/A self N/A N/A MyWidget1 N/A TextInput N/A Media N/A N/A N/A css N/A all N/A path/to/css1 /path/to/css2 N/A js N/A /path/to/js1 http://media.other.com/path/to/js2 https://secure.other.com/path/to/js3 N/A N/A MyWidget4 N/A TextInput N/A _media N/A N/A self N/A N/A N/A N/A Media css N/A all N/A /some/path js N/A /some/js N/A N/A media N/A property _media N/A MyWidget9 N/A MyWidget4 N/A Media N/A N/A N/A css N/A all N/A /other/path N/A js N/A /other/js N/A N/A N/A w9 N/A MyWidget9 N/A N/A N/A self assertEqual N/A str N/A w9 media <link href="/some/path" type="text/css" media="all" rel="stylesheet" />
<link href="/other/path" type="text/css" media="all" rel="stylesheet" />
<script type="text/javascript" src="/some/js"></script>
<script type="text/javascript" src="/other/js"></script> MyWidget10 N/A MyWidget1 N/A Media N/A N/A N/A extend False N/A css N/A all N/A /path/to/css3 path/to/css1 N/A js N/A /path/to/js1 /path/to/js4 N/A N/A N/A w10 N/A MyWidget10 N/A N/A N/A self assertEqual N/A str N/A w10 media <link href="/path/to/css3" type="text/css" media="all" rel="stylesheet" />
<link href="http://media.example.com/media/path/to/css1" type="text/css" media="all" rel="stylesheet" />
<script type="text/javascript" src="/path/to/js1"></script>
<script type="text/javascript" src="/path/to/js4"></script> N/A test_media_inheritance_extends N/A N/A self N/A N/A MyWidget1 N/A TextInput N/A Media N/A N/A N/A css N/A all N/A path/to/css1 /path/to/css2 N/A js N/A /path/to/js1 http://media.other.com/path/to/js2 https://secure.other.com/path/to/js3 N/A N/A MyWidget11 N/A MyWidget1 N/A Media N/A N/A N/A extend True N/A css N/A all N/A /path/to/css3 path/to/css1 N/A js N/A /path/to/js1 /path/to/js4 N/A N/A N/A w11 N/A MyWidget11 N/A N/A N/A self assertEqual N/A str N/A w11 media <link href="http://media.example.com/media/path/to/css1" type="text/css" media="all" rel="stylesheet" />
<link href="/path/to/css2" type="text/css" media="all" rel="stylesheet" />
<link href="/path/to/css3" type="text/css" media="all" rel="stylesheet" />
<script type="text/javascript" src="/path/to/js1"></script>
<script type="text/javascript" src="http://media.other.com/path/to/js2"></script>
<script type="text/javascript" src="https://secure.other.com/path/to/js3"></script>
<script type="text/javascript" src="/path/to/js4"></script> N/A test_media_inheritance_single_type N/A N/A self N/A N/A MyWidget1 N/A TextInput N/A Media N/A N/A N/A css N/A all N/A path/to/css1 /path/to/css2 N/A js N/A /path/to/js1 http://media.other.com/path/to/js2 https://secure.other.com/path/to/js3 N/A N/A MyWidget12 N/A MyWidget1 N/A Media N/A N/A N/A extend N/A css N/A css N/A all N/A /path/to/css3 path/to/css1 N/A js N/A /path/to/js1 /path/to/js4 N/A N/A N/A w12 N/A MyWidget12 N/A N/A N/A self assertEqual N/A str N/A w12 media <link href="http://media.example.com/media/path/to/css1" type="text/css" media="all" rel="stylesheet" />
<link href="/path/to/css2" type="text/css" media="all" rel="stylesheet" />
<link href="/path/to/css3" type="text/css" media="all" rel="stylesheet" />
<script type="text/javascript" src="/path/to/js1"></script>
<script type="text/javascript" src="/path/to/js4"></script> N/A test_multi_media N/A N/A self N/A N/A MultimediaWidget N/A TextInput N/A Media N/A N/A N/A css N/A screen, print screen print N/A /file1 /file2 N/A /file3 N/A /file4 N/A js N/A /path/to/js1 /path/to/js4 N/A N/A N/A multimedia N/A MultimediaWidget N/A N/A N/A self assertEqual N/A str N/A multimedia media <link href="/file4" type="text/css" media="print" rel="stylesheet" />
<link href="/file3" type="text/css" media="screen" rel="stylesheet" />
<link href="/file1" type="text/css" media="screen, print" rel="stylesheet" />
<link href="/file2" type="text/css" media="screen, print" rel="stylesheet" />
<script type="text/javascript" src="/path/to/js1"></script>
<script type="text/javascript" src="/path/to/js4"></script> N/A test_multi_widget N/A N/A self N/A N/A MyWidget1 N/A TextInput N/A Media N/A N/A N/A css N/A all N/A path/to/css1 /path/to/css2 N/A js N/A /path/to/js1 http://media.other.com/path/to/js2 https://secure.other.com/path/to/js3 N/A N/A MyWidget2 N/A TextInput N/A Media N/A N/A N/A css N/A all N/A /path/to/css2 /path/to/css3 N/A js N/A /path/to/js1 /path/to/js4 N/A N/A MyWidget3 N/A TextInput N/A Media N/A N/A N/A css N/A all N/A /path/to/css3 path/to/css1 N/A js N/A /path/to/js1 /path/to/js4 N/A N/A MyMultiWidget N/A MultiWidget N/A __init__ N/A N/A self attrs N/A None N/A N/A widgets N/A MyWidget1 MyWidget2 MyWidget3 N/A N/A N/A N/A super MyMultiWidget self __init__ widgets attrs N/A N/A N/A mymulti N/A MyMultiWidget N/A N/A N/A self assertEqual N/A str N/A mymulti media <link href="http://media.example.com/media/path/to/css1" type="text/css" media="all" rel="stylesheet" />
<link href="/path/to/css2" type="text/css" media="all" rel="stylesheet" />
<link href="/path/to/css3" type="text/css" media="all" rel="stylesheet" />
<script type="text/javascript" src="/path/to/js1"></script>
<script type="text/javascript" src="http://media.other.com/path/to/js2"></script>
<script type="text/javascript" src="https://secure.other.com/path/to/js3"></script>
<script type="text/javascript" src="/path/to/js4"></script> N/A test_form_media N/A N/A self N/A N/A MyWidget1 N/A TextInput N/A Media N/A N/A N/A css N/A all N/A path/to/css1 /path/to/css2 N/A js N/A /path/to/js1 http://media.other.com/path/to/js2 https://secure.other.com/path/to/js3 N/A N/A MyWidget2 N/A TextInput N/A Media N/A N/A N/A css N/A all N/A /path/to/css2 /path/to/css3 N/A js N/A /path/to/js1 /path/to/js4 N/A N/A MyWidget3 N/A TextInput N/A Media N/A N/A N/A css N/A all N/A /path/to/css3 path/to/css1 N/A js N/A /path/to/js1 /path/to/js4 N/A N/A MyForm N/A Form N/A N/A field1 N/A CharField max_length 20 widget N/A MyWidget1 N/A field2 N/A CharField max_length 20 widget N/A MyWidget2 N/A N/A f1 N/A MyForm N/A N/A N/A self assertEqual N/A str N/A f1 media <link href="http://media.example.com/media/path/to/css1" type="text/css" media="all" rel="stylesheet" />
<link href="/path/to/css2" type="text/css" media="all" rel="stylesheet" />
<link href="/path/to/css3" type="text/css" media="all" rel="stylesheet" />
<script type="text/javascript" src="/path/to/js1"></script>
<script type="text/javascript" src="http://media.other.com/path/to/js2"></script>
<script type="text/javascript" src="https://secure.other.com/path/to/js3"></script>
<script type="text/javascript" src="/path/to/js4"></script> AnotherForm N/A Form N/A N/A field3 N/A CharField max_length 20 widget N/A MyWidget3 N/A N/A f2 N/A AnotherForm N/A N/A N/A self assertEqual N/A str N/A N/A f1 media N/A f2 media <link href="http://media.example.com/media/path/to/css1" type="text/css" media="all" rel="stylesheet" />
<link href="/path/to/css2" type="text/css" media="all" rel="stylesheet" />
<link href="/path/to/css3" type="text/css" media="all" rel="stylesheet" />
<script type="text/javascript" src="/path/to/js1"></script>
<script type="text/javascript" src="http://media.other.com/path/to/js2"></script>
<script type="text/javascript" src="https://secure.other.com/path/to/js3"></script>
<script type="text/javascript" src="/path/to/js4"></script> FormWithMedia N/A Form N/A N/A field1 N/A CharField max_length 20 widget N/A MyWidget1 N/A field2 N/A CharField max_length 20 widget N/A MyWidget2 Media N/A N/A N/A js N/A /some/form/javascript N/A css N/A all N/A /some/form/css N/A N/A N/A f3 N/A FormWithMedia N/A N/A N/A self assertEqual N/A str N/A f3 media <link href="http://media.example.com/media/path/to/css1" type="text/css" media="all" rel="stylesheet" />
<link href="/path/to/css2" type="text/css" media="all" rel="stylesheet" />
<link href="/path/to/css3" type="text/css" media="all" rel="stylesheet" />
<link href="/some/form/css" type="text/css" media="all" rel="stylesheet" />
<script type="text/javascript" src="/path/to/js1"></script>
<script type="text/javascript" src="http://media.other.com/path/to/js2"></script>
<script type="text/javascript" src="https://secure.other.com/path/to/js3"></script>
<script type="text/javascript" src="/path/to/js4"></script>
<script type="text/javascript" src="/some/form/javascript"></script> N/A N/A N/A self assertEqual N/A N/A N/A Template {{ form.media.js }}{{ form.media.css }} render N/A Context N/A form f3 <script type="text/javascript" src="/path/to/js1"></script>
<script type="text/javascript" src="http://media.other.com/path/to/js2"></script>
<script type="text/javascript" src="https://secure.other.com/path/to/js3"></script>
<script type="text/javascript" src="/path/to/js4"></script>
<script type="text/javascript" src="/some/form/javascript"></script><link href="http://media.example.com/media/path/to/css1" type="text/css" media="all" rel="stylesheet" />
<link href="/path/to/css2" type="text/css" media="all" rel="stylesheet" />
<link href="/path/to/css3" type="text/css" media="all" rel="stylesheet" />
<link href="/some/form/css" type="text/css" media="all" rel="stylesheet" /> N/A N/A N/A override_settings STATIC_URL None MEDIA_URL http://media.example.com/media/ StaticFormsMediaTestCase N/A TestCase N/A N/A Tests for the media handling on widgets and forms test_construction N/A N/A self N/A N/A N/A m N/A Media css N/A all N/A path/to/css1 /path/to/css2 js N/A /path/to/js1 http://media.other.com/path/to/js2 https://secure.other.com/path/to/js3 N/A N/A N/A self assertEqual N/A str m <link href="http://media.example.com/static/path/to/css1" type="text/css" media="all" rel="stylesheet" />
<link href="/path/to/css2" type="text/css" media="all" rel="stylesheet" />
<script type="text/javascript" src="/path/to/js1"></script>
<script type="text/javascript" src="http://media.other.com/path/to/js2"></script>
<script type="text/javascript" src="https://secure.other.com/path/to/js3"></script> Foo N/A N/A N/A css N/A all N/A path/to/css1 /path/to/css2 N/A js N/A /path/to/js1 http://media.other.com/path/to/js2 https://secure.other.com/path/to/js3 N/A N/A m3 N/A Media Foo N/A N/A N/A self assertEqual N/A str m3 <link href="http://media.example.com/static/path/to/css1" type="text/css" media="all" rel="stylesheet" />
<link href="/path/to/css2" type="text/css" media="all" rel="stylesheet" />
<script type="text/javascript" src="/path/to/js1"></script>
<script type="text/javascript" src="http://media.other.com/path/to/js2"></script>
<script type="text/javascript" src="https://secure.other.com/path/to/js3"></script> MyWidget N/A TextInput N/A N/A N/A N/A w N/A MyWidget N/A N/A N/A self assertEqual N/A str N/A w media N/A test_media_dsl N/A N/A self N/A N/A MyWidget1 N/A TextInput N/A Media N/A N/A N/A css N/A all N/A path/to/css1 /path/to/css2 N/A js N/A /path/to/js1 http://media.other.com/path/to/js2 https://secure.other.com/path/to/js3 N/A N/A N/A w1 N/A MyWidget1 N/A N/A N/A self assertEqual N/A str N/A w1 media <link href="http://media.example.com/static/path/to/css1" type="text/css" media="all" rel="stylesheet" />
<link href="/path/to/css2" type="text/css" media="all" rel="stylesheet" />
<script type="text/javascript" src="/path/to/js1"></script>
<script type="text/javascript" src="http://media.other.com/path/to/js2"></script>
<script type="text/javascript" src="https://secure.other.com/path/to/js3"></script> N/A N/A N/A self assertEqual N/A str N/A N/A w1 media N/A css <link href="http://media.example.com/static/path/to/css1" type="text/css" media="all" rel="stylesheet" />
<link href="/path/to/css2" type="text/css" media="all" rel="stylesheet" /> N/A N/A N/A self assertEqual N/A str N/A N/A w1 media N/A js <script type="text/javascript" src="/path/to/js1"></script>
<script type="text/javascript" src="http://media.other.com/path/to/js2"></script>
<script type="text/javascript" src="https://secure.other.com/path/to/js3"></script> N/A test_combine_media N/A N/A self N/A N/A MyWidget1 N/A TextInput N/A Media N/A N/A N/A css N/A all N/A path/to/css1 /path/to/css2 N/A js N/A /path/to/js1 http://media.other.com/path/to/js2 https://secure.other.com/path/to/js3 N/A N/A MyWidget2 N/A TextInput N/A Media N/A N/A N/A css N/A all N/A /path/to/css2 /path/to/css3 N/A js N/A /path/to/js1 /path/to/js4 N/A N/A MyWidget3 N/A TextInput N/A Media N/A N/A N/A css N/A all N/A /path/to/css3 path/to/css1 N/A js N/A /path/to/js1 /path/to/js4 N/A N/A N/A w1 N/A MyWidget1 N/A w2 N/A MyWidget2 N/A w3 N/A MyWidget3 N/A N/A N/A self assertEqual N/A str N/A N/A N/A w1 media N/A w2 media N/A w3 media <link href="http://media.example.com/static/path/to/css1" type="text/css" media="all" rel="stylesheet" />
<link href="/path/to/css2" type="text/css" media="all" rel="stylesheet" />
<link href="/path/to/css3" type="text/css" media="all" rel="stylesheet" />
<script type="text/javascript" src="/path/to/js1"></script>
<script type="text/javascript" src="http://media.other.com/path/to/js2"></script>
<script type="text/javascript" src="https://secure.other.com/path/to/js3"></script>
<script type="text/javascript" src="/path/to/js4"></script> N/A N/A N/A self assertEqual N/A str N/A w1 media <link href="http://media.example.com/static/path/to/css1" type="text/css" media="all" rel="stylesheet" />
<link href="/path/to/css2" type="text/css" media="all" rel="stylesheet" />
<script type="text/javascript" src="/path/to/js1"></script>
<script type="text/javascript" src="http://media.other.com/path/to/js2"></script>
<script type="text/javascript" src="https://secure.other.com/path/to/js3"></script> MyWidget4 N/A TextInput N/A Media N/A N/A N/A css N/A all N/A /path/to/css1 /path/to/css1 N/A js N/A /path/to/js1 /path/to/js1 N/A N/A N/A w4 N/A MyWidget4 N/A N/A N/A self assertEqual N/A str N/A w4 media <link href="/path/to/css1" type="text/css" media="all" rel="stylesheet" />
<script type="text/javascript" src="/path/to/js1"></script> N/A test_media_property N/A N/A self N/A N/A MyWidget4 N/A TextInput N/A _media N/A N/A self N/A N/A N/A N/A Media css N/A all N/A /some/path js N/A /some/js N/A N/A media N/A property _media N/A N/A w4 N/A MyWidget4 N/A N/A N/A self assertEqual N/A str N/A w4 media <link href="/some/path" type="text/css" media="all" rel="stylesheet" />
<script type="text/javascript" src="/some/js"></script> MyWidget5 N/A MyWidget4 N/A _media N/A N/A self N/A N/A N/A N/A N/A N/A super MyWidget5 self media N/A Media css N/A all N/A /other/path js N/A /other/js N/A N/A media N/A property _media N/A N/A w5 N/A MyWidget5 N/A N/A N/A self assertEqual N/A str N/A w5 media <link href="/some/path" type="text/css" media="all" rel="stylesheet" />
<link href="/other/path" type="text/css" media="all" rel="stylesheet" />
<script type="text/javascript" src="/some/js"></script>
<script type="text/javascript" src="/other/js"></script> N/A test_media_property_parent_references N/A N/A self N/A N/A MyWidget1 N/A TextInput N/A Media N/A N/A N/A css N/A all N/A path/to/css1 /path/to/css2 N/A js N/A /path/to/js1 http://media.other.com/path/to/js2 https://secure.other.com/path/to/js3 N/A N/A MyWidget6 N/A MyWidget1 N/A _media N/A N/A self N/A N/A N/A N/A N/A N/A super MyWidget6 self media N/A Media css N/A all N/A /other/path js N/A /other/js N/A N/A media N/A property _media N/A N/A w6 N/A MyWidget6 N/A N/A N/A self assertEqual N/A str N/A w6 media <link href="http://media.example.com/static/path/to/css1" type="text/css" media="all" rel="stylesheet" />
<link href="/path/to/css2" type="text/css" media="all" rel="stylesheet" />
<link href="/other/path" type="text/css" media="all" rel="stylesheet" />
<script type="text/javascript" src="/path/to/js1"></script>
<script type="text/javascript" src="http://media.other.com/path/to/js2"></script>
<script type="text/javascript" src="https://secure.other.com/path/to/js3"></script>
<script type="text/javascript" src="/other/js"></script> N/A test_media_inheritance N/A N/A self N/A N/A MyWidget1 N/A TextInput N/A Media N/A N/A N/A css N/A all N/A path/to/css1 /path/to/css2 N/A js N/A /path/to/js1 http://media.other.com/path/to/js2 https://secure.other.com/path/to/js3 N/A N/A MyWidget7 N/A MyWidget1 N/A N/A N/A N/A w7 N/A MyWidget7 N/A N/A N/A self assertEqual N/A str N/A w7 media <link href="http://media.example.com/static/path/to/css1" type="text/css" media="all" rel="stylesheet" />
<link href="/path/to/css2" type="text/css" media="all" rel="stylesheet" />
<script type="text/javascript" src="/path/to/js1"></script>
<script type="text/javascript" src="http://media.other.com/path/to/js2"></script>
<script type="text/javascript" src="https://secure.other.com/path/to/js3"></script> MyWidget8 N/A MyWidget1 N/A Media N/A N/A N/A css N/A all N/A /path/to/css3 path/to/css1 N/A js N/A /path/to/js1 /path/to/js4 N/A N/A N/A w8 N/A MyWidget8 N/A N/A N/A self assertEqual N/A str N/A w8 media <link href="http://media.example.com/static/path/to/css1" type="text/css" media="all" rel="stylesheet" />
<link href="/path/to/css2" type="text/css" media="all" rel="stylesheet" />
<link href="/path/to/css3" type="text/css" media="all" rel="stylesheet" />
<script type="text/javascript" src="/path/to/js1"></script>
<script type="text/javascript" src="http://media.other.com/path/to/js2"></script>
<script type="text/javascript" src="https://secure.other.com/path/to/js3"></script>
<script type="text/javascript" src="/path/to/js4"></script> N/A test_media_inheritance_from_property N/A N/A self N/A N/A MyWidget1 N/A TextInput N/A Media N/A N/A N/A css N/A all N/A path/to/css1 /path/to/css2 N/A js N/A /path/to/js1 http://media.other.com/path/to/js2 https://secure.other.com/path/to/js3 N/A N/A MyWidget4 N/A TextInput N/A _media N/A N/A self N/A N/A N/A N/A Media css N/A all N/A /some/path js N/A /some/js N/A N/A media N/A property _media N/A MyWidget9 N/A MyWidget4 N/A Media N/A N/A N/A css N/A all N/A /other/path N/A js N/A /other/js N/A N/A N/A w9 N/A MyWidget9 N/A N/A N/A self assertEqual N/A str N/A w9 media <link href="/some/path" type="text/css" media="all" rel="stylesheet" />
<link href="/other/path" type="text/css" media="all" rel="stylesheet" />
<script type="text/javascript" src="/some/js"></script>
<script type="text/javascript" src="/other/js"></script> MyWidget10 N/A MyWidget1 N/A Media N/A N/A N/A extend False N/A css N/A all N/A /path/to/css3 path/to/css1 N/A js N/A /path/to/js1 /path/to/js4 N/A N/A N/A w10 N/A MyWidget10 N/A N/A N/A self assertEqual N/A str N/A w10 media <link href="/path/to/css3" type="text/css" media="all" rel="stylesheet" />
<link href="http://media.example.com/static/path/to/css1" type="text/css" media="all" rel="stylesheet" />
<script type="text/javascript" src="/path/to/js1"></script>
<script type="text/javascript" src="/path/to/js4"></script> N/A test_media_inheritance_extends N/A N/A self N/A N/A MyWidget1 N/A TextInput N/A Media N/A N/A N/A css N/A all N/A path/to/css1 /path/to/css2 N/A js N/A /path/to/js1 http://media.other.com/path/to/js2 https://secure.other.com/path/to/js3 N/A N/A MyWidget11 N/A MyWidget1 N/A Media N/A N/A N/A extend True N/A css N/A all N/A /path/to/css3 path/to/css1 N/A js N/A /path/to/js1 /path/to/js4 N/A N/A N/A w11 N/A MyWidget11 N/A N/A N/A self assertEqual N/A str N/A w11 media <link href="http://media.example.com/static/path/to/css1" type="text/css" media="all" rel="stylesheet" />
<link href="/path/to/css2" type="text/css" media="all" rel="stylesheet" />
<link href="/path/to/css3" type="text/css" media="all" rel="stylesheet" />
<script type="text/javascript" src="/path/to/js1"></script>
<script type="text/javascript" src="http://media.other.com/path/to/js2"></script>
<script type="text/javascript" src="https://secure.other.com/path/to/js3"></script>
<script type="text/javascript" src="/path/to/js4"></script> N/A test_media_inheritance_single_type N/A N/A self N/A N/A MyWidget1 N/A TextInput N/A Media N/A N/A N/A css N/A all N/A path/to/css1 /path/to/css2 N/A js N/A /path/to/js1 http://media.other.com/path/to/js2 https://secure.other.com/path/to/js3 N/A N/A MyWidget12 N/A MyWidget1 N/A Media N/A N/A N/A extend N/A css N/A css N/A all N/A /path/to/css3 path/to/css1 N/A js N/A /path/to/js1 /path/to/js4 N/A N/A N/A w12 N/A MyWidget12 N/A N/A N/A self assertEqual N/A str N/A w12 media <link href="http://media.example.com/static/path/to/css1" type="text/css" media="all" rel="stylesheet" />
<link href="/path/to/css2" type="text/css" media="all" rel="stylesheet" />
<link href="/path/to/css3" type="text/css" media="all" rel="stylesheet" />
<script type="text/javascript" src="/path/to/js1"></script>
<script type="text/javascript" src="/path/to/js4"></script> N/A test_multi_media N/A N/A self N/A N/A MultimediaWidget N/A TextInput N/A Media N/A N/A N/A css N/A screen, print screen print N/A /file1 /file2 N/A /file3 N/A /file4 N/A js N/A /path/to/js1 /path/to/js4 N/A N/A N/A multimedia N/A MultimediaWidget N/A N/A N/A self assertEqual N/A str N/A multimedia media <link href="/file4" type="text/css" media="print" rel="stylesheet" />
<link href="/file3" type="text/css" media="screen" rel="stylesheet" />
<link href="/file1" type="text/css" media="screen, print" rel="stylesheet" />
<link href="/file2" type="text/css" media="screen, print" rel="stylesheet" />
<script type="text/javascript" src="/path/to/js1"></script>
<script type="text/javascript" src="/path/to/js4"></script> N/A test_multi_widget N/A N/A self N/A N/A MyWidget1 N/A TextInput N/A Media N/A N/A N/A css N/A all N/A path/to/css1 /path/to/css2 N/A js N/A /path/to/js1 http://media.other.com/path/to/js2 https://secure.other.com/path/to/js3 N/A N/A MyWidget2 N/A TextInput N/A Media N/A N/A N/A css N/A all N/A /path/to/css2 /path/to/css3 N/A js N/A /path/to/js1 /path/to/js4 N/A N/A MyWidget3 N/A TextInput N/A Media N/A N/A N/A css N/A all N/A /path/to/css3 path/to/css1 N/A js N/A /path/to/js1 /path/to/js4 N/A N/A MyMultiWidget N/A MultiWidget N/A __init__ N/A N/A self attrs N/A None N/A N/A widgets N/A MyWidget1 MyWidget2 MyWidget3 N/A N/A N/A N/A super MyMultiWidget self __init__ widgets attrs N/A N/A N/A mymulti N/A MyMultiWidget N/A N/A N/A self assertEqual N/A str N/A mymulti media <link href="http://media.example.com/static/path/to/css1" type="text/css" media="all" rel="stylesheet" />
<link href="/path/to/css2" type="text/css" media="all" rel="stylesheet" />
<link href="/path/to/css3" type="text/css" media="all" rel="stylesheet" />
<script type="text/javascript" src="/path/to/js1"></script>
<script type="text/javascript" src="http://media.other.com/path/to/js2"></script>
<script type="text/javascript" src="https://secure.other.com/path/to/js3"></script>
<script type="text/javascript" src="/path/to/js4"></script> N/A test_form_media N/A N/A self N/A N/A MyWidget1 N/A TextInput N/A Media N/A N/A N/A css N/A all N/A path/to/css1 /path/to/css2 N/A js N/A /path/to/js1 http://media.other.com/path/to/js2 https://secure.other.com/path/to/js3 N/A N/A MyWidget2 N/A TextInput N/A Media N/A N/A N/A css N/A all N/A /path/to/css2 /path/to/css3 N/A js N/A /path/to/js1 /path/to/js4 N/A N/A MyWidget3 N/A TextInput N/A Media N/A N/A N/A css N/A all N/A /path/to/css3 path/to/css1 N/A js N/A /path/to/js1 /path/to/js4 N/A N/A MyForm N/A Form N/A N/A field1 N/A CharField max_length 20 widget N/A MyWidget1 N/A field2 N/A CharField max_length 20 widget N/A MyWidget2 N/A N/A f1 N/A MyForm N/A N/A N/A self assertEqual N/A str N/A f1 media <link href="http://media.example.com/static/path/to/css1" type="text/css" media="all" rel="stylesheet" />
<link href="/path/to/css2" type="text/css" media="all" rel="stylesheet" />
<link href="/path/to/css3" type="text/css" media="all" rel="stylesheet" />
<script type="text/javascript" src="/path/to/js1"></script>
<script type="text/javascript" src="http://media.other.com/path/to/js2"></script>
<script type="text/javascript" src="https://secure.other.com/path/to/js3"></script>
<script type="text/javascript" src="/path/to/js4"></script> AnotherForm N/A Form N/A N/A field3 N/A CharField max_length 20 widget N/A MyWidget3 N/A N/A f2 N/A AnotherForm N/A N/A N/A self assertEqual N/A str N/A N/A f1 media N/A f2 media <link href="http://media.example.com/static/path/to/css1" type="text/css" media="all" rel="stylesheet" />
<link href="/path/to/css2" type="text/css" media="all" rel="stylesheet" />
<link href="/path/to/css3" type="text/css" media="all" rel="stylesheet" />
<script type="text/javascript" src="/path/to/js1"></script>
<script type="text/javascript" src="http://media.other.com/path/to/js2"></script>
<script type="text/javascript" src="https://secure.other.com/path/to/js3"></script>
<script type="text/javascript" src="/path/to/js4"></script> FormWithMedia N/A Form N/A N/A field1 N/A CharField max_length 20 widget N/A MyWidget1 N/A field2 N/A CharField max_length 20 widget N/A MyWidget2 Media N/A N/A N/A js N/A /some/form/javascript N/A css N/A all N/A /some/form/css N/A N/A N/A f3 N/A FormWithMedia N/A N/A N/A self assertEqual N/A str N/A f3 media <link href="http://media.example.com/static/path/to/css1" type="text/css" media="all" rel="stylesheet" />
<link href="/path/to/css2" type="text/css" media="all" rel="stylesheet" />
<link href="/path/to/css3" type="text/css" media="all" rel="stylesheet" />
<link href="/some/form/css" type="text/css" media="all" rel="stylesheet" />
<script type="text/javascript" src="/path/to/js1"></script>
<script type="text/javascript" src="http://media.other.com/path/to/js2"></script>
<script type="text/javascript" src="https://secure.other.com/path/to/js3"></script>
<script type="text/javascript" src="/path/to/js4"></script>
<script type="text/javascript" src="/some/form/javascript"></script> N/A N/A N/A self assertEqual N/A N/A N/A Template {{ form.media.js }}{{ form.media.css }} render N/A Context N/A form f3 <script type="text/javascript" src="/path/to/js1"></script>
<script type="text/javascript" src="http://media.other.com/path/to/js2"></script>
<script type="text/javascript" src="https://secure.other.com/path/to/js3"></script>
<script type="text/javascript" src="/path/to/js4"></script>
<script type="text/javascript" src="/some/form/javascript"></script><link href="http://media.example.com/static/path/to/css1" type="text/css" media="all" rel="stylesheet" />
<link href="/path/to/css2" type="text/css" media="all" rel="stylesheet" />
<link href="/path/to/css3" type="text/css" media="all" rel="stylesheet" />
<link href="/some/form/css" type="text/css" media="all" rel="stylesheet" /> N/A N/A N/A override_settings STATIC_URL http://media.example.com/static/ MEDIA_URL http://media.example.com/media/