【发布时间】:2014-05-26 09:34:10
【问题描述】:
部署的网站效果很好!但是,当我运行开发服务器时,它不会加载静态数据。访问时
localhost:9090/static
它返回 404 page not found 并说:
Directory indexes are not allowed here.
请帮忙!
STATIC_ROOT = '/var/mysite/static/'
STATIC_URL = '/static/
DEBUG = True
试过了:
-collectstatic method
-adding static_dir & urlpatterns += staticfiles_urlpatterns()
【问题讨论】:
标签: django file static http-status-code-404