为什么托管中的django网站(alwaysdata)无法显示我的页面 [英] why my django site in hosting (alwaysdata) cant show my page

查看:85
本文介绍了为什么托管中的django网站(alwaysdata)无法显示我的页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已将Django部署在 alwaysdata.com

I have deployed Django at alwaysdata.com,

这是我在 http://zjm1126.alwaysdata.net/上的主页:

我将index.html更改为index1.html,该文件不是我的文件,

i change the index.html to index1.html, this file is not my file ,

我的项目是这样的:

example_project/
    __init__.py
    manage.py
    public/
        django.fcgi
        .htaccess
        media/
    settings.py
    urls.py
    myapp/
        views.py
        models.py

我该怎么做才能显示我的主页.

what can i do to show my main page .

谢谢

推荐答案

我认为您需要将子域指向正确的目录:/example_project/public/您的.htaccess和django.fcgi所在的位置.

I think that you need to point your subdomain to the right directory : /example_project/public/ where your .htaccess and django.fcgi lives.

alwaysdata有一个论坛 http://forum.alwaysdata.com/,您可以用英语提问.伙计们非常了解他们的工作,很快就回答了.

alwaysdata has a forum http://forum.alwaysdata.com/ where you can ask question in english. The guys know their job very well and answer very quickly.

我希望对您有帮助

这篇关于为什么托管中的django网站(alwaysdata)无法显示我的页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆