【问题标题】:Cant get the child dir in django hosting (alwaysdata.com)无法在 django 托管(alwaysdata.com)中获取子目录
【发布时间】:2010-12-27 14:13:27
【问题描述】:

这是我的文件:

mysite 
   templates
       homepage.html
       accounts
           a.html
           login_view.html

我可以在 127.0.0.1:8000 上获得 homepage.htmlaccounts\a.html

但在http://zjm1126.alwaysdata.net 中,我只能得到homepage.html,无法得到 accounts\a.html

这是我的代码:

return render_to_response('accounts/login_view.html')

accounts/login_view.html 是:

{% include "accounts\a.html" %}

我该怎么办,谢谢,

【问题讨论】:

    标签: python django templates hosting


    【解决方案1】:

    你是说accounts/a.html吗?

    【讨论】:

    • 不,accounts\a.html 是对的,因为我可以在127.0.0.1:8000 得到这个
    • 您在本地使用什么操作系统?视窗?远程? Linux?
    • 我使用的是 windows xp,我认为 alywaysdata.com 可能是 Linux。
    猜你喜欢
    • 2011-05-26
    • 2020-10-27
    • 2010-12-29
    • 2012-09-28
    • 1970-01-01
    • 2012-01-09
    • 1970-01-01
    • 2015-03-24
    • 1970-01-01
    相关资源
    最近更新 更多