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
foonpcf
V2EX  ›  Python

Django 及 Html 的兩者關係

  •  
  •   foonpcf · 2015-06-09 10:59:51 +08:00 · 3278 次点击
    这是一个创建于 3234 天前的主题,其中的信息可能已经有所发展或是发生改变。
    我使用photo album software 產生數個 photo gallery website.

    現在已經架設了伺服器及使用django來關發網站,發現不能直接鏈接這個photo gallery website。
    往往只去到 examp.com/photos/。

    因為項目有大量這個情況,怎樣解決這個問題????????
    14 条回复    2015-06-09 20:54:30 +08:00
    zjwzszh
        1
    zjwzszh  
       2015-06-09 11:12:01 +08:00
    為什麼我看不懂你的問題?
    leavic
        2
    leavic  
       2015-06-09 11:26:00 +08:00
    @zjwzszh 不用难过,我也看不懂。
    vSignup
        3
    vSignup  
       2015-06-09 11:28:27 +08:00
    问题有点看不懂,不过猜一下感觉是配置出错。

    可以在配置文件里搜搜 “examp.com/photos/” 改成你要的地址
    virusdefender
        4
    virusdefender  
       2015-06-09 11:32:36 +08:00 via Android
    @zjwzszh 我也没看懂
    zhangshine
        5
    zhangshine  
       2015-06-09 11:33:03 +08:00
    既然都看不懂就猜吧,我猜是nginx或者apache文件路径配置问题
    w88975
        6
    w88975  
       2015-06-09 11:35:07 +08:00
    语文不过关就算了,还用繁体字。。
    ljcarsenal
        7
    ljcarsenal  
       2015-06-09 12:15:11 +08:00
    @w88975 伺服器说不定真是台湾人
    Guanrenfu
        8
    Guanrenfu  
       2015-06-09 13:03:28 +08:00
    应该是你的软体配置出了问题
    tiant167
        9
    tiant167  
       2015-06-09 13:05:19 +08:00
    @zjwzszh 你不是一个人,我也没看懂…
    recall704
        10
    recall704  
       2015-06-09 13:25:05 +08:00
    能贴图片么?
    ericls
        11
    ericls  
       2015-06-09 13:47:32 +08:00 via iPad
    楼主用的 Google 翻译吧?
    I guess OP just typed something into google translate and pasted it here.
    clino
        12
    clino  
       2015-06-09 13:52:04 +08:00
    @vSignup 感觉搜不到,估计应该是 example.com
    izoabr
        13
    izoabr  
       2015-06-09 14:34:13 +08:00
    台湾同胞
    zjxubinbin
        14
    zjxubinbin  
       2015-06-09 20:54:30 +08:00
    我来翻译一下:

    我用在线相册生成软件生成了很多个在线相册网站.
    现在已经搭建好了网站服务器并且准备用Django来开发网站,但是我发现不能直接访问相册网站的URL.
    只能用二级目录的形式来访问,如:examp.com/photos/

    现在项目里边大量出现这种状况,请问怎么解决???

    不谢,从小数学老师就夸我语文底子好~~
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3440 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 12:03 · PVG 20:03 · LAX 05:03 · JFK 08:03
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.