我在 webfaction 上运行 django,并且在实现我的 css 文件时遇到了麻烦。我拥有的示例 html 文件是:
<html>
<head>
</head>
<h1>
Poll
</h1>
<body>
<link rel="stylesheet" type="text/css" href="/home/shop/webapps/django/shop/static/index.css" />
<form name="Search bar" action="/search/results/p=1/" method="post">
{% csrf_token %}
UserId: <input type="text" name="UserId" /><br><br>
<input type="text" name="Keyword" />
<input type="submit" value="Search" />
</form>
</body>
</html>
完全相同的文件在我的本地服务器上运行良好,但不适用于 webfaction。我想知道是否有人知道出了什么问题。
谢谢!