开发者

Add an image to Django admin header

开发者 https://www.devze.com 2023-04-06 19:12 出处:网络
How do I display an image in the header of Django\'s admin (I refer to the place on the top of the page with the yellow title \"D开发者_JAVA百科jango administration\" with blue background)?

How do I display an image in the header of Django's admin (I refer to the place on the top of the page with the yellow title "D开发者_JAVA百科jango administration" with blue background)?

I've tried to so with the HTML tag of <img> with some absolute path (under the assumption that the server and the client are running on the same machine):

<img width="225" height="151" src="C:\Python27\Lib\site-packages\django\contrib\admin\media\img\admin\sunrise.png" alt="Sunrise here">

But the image isn't displayed (just the string "Sunrise here").

0

精彩评论

暂无评论...
验证码 换一张
取 消