我正在使用 django 1.6
在我的设置中,我有这个,效果很好,
STATICFILES_DIRS = (
os.path.join(BASE_DIR, 'static/'),
)
但是我添加的那一刻:`MEDIA_ROOT = os.path.join(BASE_DIR, 'media/'),
渲染模板时出现错误:
'tuple' does not support the buffer interface
问题代码: <link href=" {% static 'bootstrap/css/bootstrap.min.css' %} " rel="stylesheet">
这两种设置之间是否存在某种冲突?我要做的就是为用户上传的文件提供服务,我是否应该将upload_to设置更改为静态目录?
有没有人经历过这种情况或知道可能是什么问题
任何帮助表示赞赏,谢谢