推荐学习书目
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
inyfee
V2EX  ›  Python

djangoueditor 上传图片路径显示问题

  •  
  •   inyfee · Apr 30, 2014 · 4874 views
    This topic created in 4422 days ago, the information mentioned may be changed or developed.
    安装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了好一会儿没有找到相关设置项,求解
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1388 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 46ms · UTC 17:08 · PVG 01:08 · LAX 10:08 · JFK 13:08
    ♥ Do have faith in what you're doing.