Django correct method to insert external css framework like Blueprint css into view
What is the best method to insert external css into view?
Should I do this :
class Media:
开发者_JAVA技巧 css = (settings.ADMIN_MEDIA_PREFIX + 'button.css',)
Or I directly insert them into html template.
From the context it seems that you're trying to insert CSS into a ModelAdmin
, in which case your method is definitely correct and is the recommended one.
I would only touch the admin templates if you actually need to override part of them with new markup.
精彩评论