django1.6 setting文件设置下载

weixin_39821260 2021-01-26 02:31:00
setting文件中 if DEBUG 设置的参数都是在开发环境下的 static参数 url中的写法是这样
if settings.DEBUG:
urlpatterns += static (settings.STATIC_URL,
document_root = settings.STATIC_ROOT)
urlpatterns += static (settings.MEDIA_URL,
document_root = settings.MEDIA_ROOT)
相关下载链接://download.csdn.net/download/hevinbin/7899041?utm_source=bbsseo
...全文
14 回复 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

13,656

社区成员

发帖
与我相关
我的任务
社区描述
CSDN 下载资源悬赏专区
其他 技术论坛(原bbs)
社区管理员
  • 下载资源悬赏专区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧