0
我有一個樹形結構是這樣的:CSS在Django中沒有顯示?
.
|-- backend.py
|-- backend.pyc
|-- functions.py
|-- functions.pyc
|-- __init__.py
|-- __init__.pyc
|-- models.py
|-- models.pyc
|-- templates
| |-- css
| | |-- PIE.htc
| | `-- style.css
| |-- form.html
| |-- index.html
| |-- index.html~
| |-- reform.html
| |-- style.css
| |-- synced.html
| |-- test.html
| `-- thanks.html
|-- tests.py
|-- views.py
`-- views.pyc
我已經給出了路徑STATICFILES_DIRS:
STATICFILES_DIRS = '/home/zurelsoft/workspace/genelaytics/fileupload/templates/css'
每當我打開該模板的index.html它不讀取CSS。我究竟做錯了什麼?
鏈接標籤模板:
<title>.:: Genalytics ::.</title>
<link href="css/style.css" rel="stylesheet" type="text/css" />
</head>
向我們展示您的模板文件。還請考慮遵循標準做法(將靜態文件與模板分開放置在'static'目錄中)。 – Tadeck
看到我編輯的問題。 – user1881957