1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
|
# -*- coding: utf-8 -*-
# most of this stuff is obvious.
# tier is not currently used
# weight is whatever integer you want, i.e. bogomips, etc
# note: all images must be referenced with a path relative to MEDIA_URL
# so for example if we want to point at:
# www.example.com/static/imgs/some/path/some/where/my_image.jpg
# and our MEDIA_URL is set to www.example.com/static/ then we would want
# 'name': 'imgs/some/path/some/where/my_image.jpg'
# Note that the MEDIA_URL has a trailing slash !important
ads = [
{
'type':'html',
'name': 'internal_name_1',
'title': 'human title 1',
'tier': 1,
'weight': 15, #bogomips
'url': 'http://www1.example.com',
'html': '<h2>Heading</h2><p>This <a href="http://www.example.com">here</a> is a link.</p>',
'height': 120,
'width': 125,
},
{
'type':'txt',
'name': 'internal_name_2',
'title': 'human title 2',
'tier': 1,
'weight': 25,
'url': 'http://www2.example.com',
'text': 'On the other hand, we denounce with righteous indignation and dislike men who are so beguiled and demoralized by the charms of pleasure of the moment, so blinded by desire, that they cannot foresee the pain and trouble that are bound to ensue; and equal blame belongs to those who fail in their duty through weakness of will, which is the same as saying through shrinking from toil and pain.',
'height': 120,
'width': 125,
},
{
'type':'img',
'name': 'internal_name_3',
'title': 'human title 3',
'tier': 1,
'weight': 5,
'url': 'http://www3.example.com',
'img': 'path/to/img3.jpg',
'height': 120,
'width': 125,
},
{
'type':'img',
'name': 'internal_name_4',
'title': 'human title 4',
'tier': 2,
'weight': 105,
'url': 'http://www4.example.com',
'img': 'path/to/img4.png',
'height': 120,
'width': 125,
},
{
'type':'img',
'name': 'internal_name_5',
'title': 'human title 5',
'tier': 2,
'weight': 19,
'url': 'http://www5.example.com',
'img': 'path/to/img5.png',
'height': 120,
'width': 125,
},
{
'type':'img',
'name': 'internal_name_6',
'title': 'human title 6',
'tier': 3,
'weight': 150,
'url': 'http://www6.example.com',
'img': 'path/to/img6.png',
'height': 120,
'width': 125,
},
{
'type':'img',
'name': 'internal_name_7',
'title': 'human title 7',
'tier': 3,
'weight': 170,
'url': 'http://www7.example.com',
'img': 'path/to/img7.png',
'height': 120,
'width': 125,
},
{
'type':'img',
'name': 'internal_name_8',
'title': 'human title 8',
'tier': 3,
'weight': 11,
'url': 'http://www8.example.com',
'img': 'path/to/img8.png',
'height': 120,
'width': 125,
},
{
'name': 'internal_name_9',
'title': 'human title 9',
'tier': 3,
'weight': 1950,
'url': 'http://www9.example.com',
'img': 'path/to/img9.png',
'height': 120,
'width': 125,
},
{
'type':'img',
'name': 'internal_name_10',
'title': 'human title 10',
'tier': 3,
'weight': 122,
'url': 'http://www10.example.com',
'img': 'path/to/img10.png',
'height': 120,
'width': 125,
},
{
'type':'img',
'name': 'internal_name_11',
'title': 'human title 11',
'tier': 3,
'weight': 17,
'url': 'http://www11.example.com',
'img': 'path/to/img11 .png',
'height': 120,
'width': 125,
},
]
|