我有一個我正在處理的django項目的索引頁,但是當我查看它時,附加到按鈕的圖像沒有顯示出來。查看HTML代碼時圖像沒有顯示
<html>
<head>
<title>Support Tools</title>
<style type="text/css">
.button {
float: left;
margin-left: 30px;
margin-bottom: 30px;
width: 350px;
height: 150px;
background: url('/media/img/blank.png');
background-repeat: no-repeat;
cursor: hand;
}
.button img {
position: relative;
left: 20px;
top: 10px;
}
.button div {
font-family: Trebuchet MS, Calibri;
color: white;
font-weight: bold;
font-size: 22pt;
text-align: center;
position: relative;
top: -100px;
left: 120px;
width: 220px;
}
.title {
font-family: Calibri, Helvetica, Arial, Verdana;
font-size: 18pt;
font-weight: bold;
}
a, a:link, a:visited, a:active, a:hover {
text-decoration: none;
}
</style>
<!--[if lte IE 6]>
<script type="text/javascript" src="/media/js/supersleight-min.js"></script>
<![endif]-->
</head>
<body id="b">
<p class="title">GAI Support Tools</p>
<a href="/eam/">
<div class="button">
<img src="/media/img/tools.png" />
<div>EAM<br />Support Tool</div>
</div>
</a>
<a href="/admin/minisar/">
<div class="button">
<img src="/media/img/database.png" />
<div>miniSAR<br />Administration</div>
</div>
</a>
<a href="/ai_stats/">
<div class="button">
<img src="/media/img/chart.png" />
<div>Web Service<br />Dashboard</div>
</div>
</a>
<a href="/health/production/">
<div class="button">
<img src="/media/img/monitor.png" />
<div> Web Service<br />Health</div>
</div>
</a>
<a href="/toys/user/">
<div class="button">
<img src="/media/img/users.png" />
<div>User<br />Search</div>
</div>
</a>
<a href="/toys/ud_data_extract/">
<div class="button">
<img src="/media/img/database.png" />
<div>UD Data<br />Extract</div>
</div>
</a>
<a href="/solutions/">
<div class="button">
<img src="/media/img/solutions.png" />
<div>Solution Matrix</div>
</div>
</a>
<a href="/directentry/">
<div class="button">
<img src="/media/img/dice.png" />
<div style="text-align: left; padding-left: 2.5em;"><u>DI</u>rect<br /><u>C</u>XML<br /><u>E</u>ntry</div>
</div>
</a>
<script type="text/javascript">
supersleight.limitTo("b");
supersleight.init();
</script>
</body>
</html>
它只是顯示爲一個殘缺的圖像鏈接,但所有的.png文件都在/media/img/
文件夾中。
感謝您的。一旦我可以運行manage.py服務器,我會給它一個鏡頭。我很肯定這會解決這個問題。我們正在從一個服務器移動這個程序到另一個和更新一些Python包的過程中,看到我們沒有使用的手機將不再可用。我們正在使用過時的Django代碼。將是一個艱苦的過程。 – R2DeeTard