class Media: js = [ static_url(path) for path in ( 'js/jquery-1.8.3.min.js', 'js/jquery.handsontable.full.js', 'js/jquery.contextMenu.js', 'js/jquery.ui.position.js', 'js/json2.js', 'js/bootstrap-typeahead.js', ) ] css = { 'all': [ static_url(path) for path in ( 'css/jquery.handsontable.full.css', 'css/jquery.contextMenu.css', ) ], }
def icon_src(self, instance): return static_url("img/table.png")
class Media: js = (static_url('js/diff/htmldiff.js'), static_url('js/jquery.qtip.min.js')) css = {'all': (static_url('css/jquery.qtip.min.css'), )}
class Media: js = (reverse_lazy('django.views.i18n.javascript_catalog', args=['versionutils.diff']), static_url('js/diff/htmldiff.js'), static_url('js/jquery.qtip.min.js')) css = {'all': (static_url('css/jquery.qtip.min.css'),)}
def icon_src(self, instance): return static_url("img/table.png")
def test_static_url(self): r = utils.static_url('fake.url') self.assertEqual(r, '/static/fake.url')