V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
yeelone
V2EX  ›  Python

djangoueditor 上传图片路径显示问题

  •  
  •   yeelone · 2014-04-30 21:03:26 +08:00 · 4264 次点击
    这是一个创建于 3620 天前的主题,其中的信息可能已经有所发展或是发生改变。
    安装django ueditor 之后 ,上传图片成功 ,但是返回的图片路径是这样的:
    <p>
    <img src="uploadimg/695d00bbgw1ef8314yu9bj20c80awdgm_20140430_203149_36.jpg" title="695d00bbgw1ef8314yu9bj20c80awdgm.jpg" />
    </p>

    在 django 控制台看输出 ,是请求这样的地址:
    [30/Apr/2014 20:31:59] "GET /admin/home/services/add/uploadimg/695d00bbgw1ef8314yu9bj20c80awdgm_20140430_203149_36.jpg/ HTTP/1.1" 404 1865

    这个路径自然是无法取到图片的。
    我想正常的应该是这样的路径:<img src="/(这里加/)uploadimg/695d00bbgw1ef8314yu9bj2.jpg />
    不知道算不算是个BUG 。

    直接修改django-ueditor 源代码的方法来解决的话感觉太粗爆了,不知道DjangoUeditor有没有可以配置的选项?google了好一会儿没有找到相关设置项,求解
    目前尚无回复
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2840 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 12:57 · PVG 20:57 · LAX 05:57 · JFK 08:57
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.