2
我是django的初学者。我阅读文档和其他很多答案。但是,不幸的是无法弄清楚问题所在。我正在使用django 1.4和开发服务器。Django无法找到静态文件
这是我的CSS和IMG文件中的HTML链接方式:
<link rel="stylesheet" type="text/css" href={{ STATIC_URL }}style.css />
<img src={{ STATIC_URL }}1.gif />
我的目录设置:
project
-manage.py
-project
-app
-static
-models.py
-views.py
-tests.py
我的设置文件:
STATIC_ROOT = ''
STATIC_URL = '/static/'
STATICFILES_DIRS =()
STATICFILES_FINDERS = (
'django.contrib.staticfiles.finders.FileSystemFinder',
'django.contrib.staticfiles.finders.AppDirectoriesFinder',
)
任何帮助将是赞赏。