python - 为什么我的托管 Django 站点(alwaysdata)无法显示我的页面

标签 python django hosting

我已将 Django 部署在 alwaysdata.com ,

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

alt text

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

我的项目是这样的:

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

我可以做什么来显示我的主页。

谢谢

最佳答案

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

alwaysdata有一个论坛http://forum.alwaysdata.com/在那里你可以用英语提问。这些人非常了解他们的工作并且回答得很快。

希望对你有帮助

关于python - 为什么我的托管 Django 站点(alwaysdata)无法显示我的页面,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4435406/

相关文章:

python - 调用函数出错

python - 在 node-webkit 启动时运行 python 脚本 (nw.js)

python - TypeError : Only valid with DatetimeIndex, TimedeltaIndex 或 periodIndex,但得到了 'RangeIndex' 的实例,我不明白为什么

Django 管理员 : Detect if a subset of an object fields has changed and which of them

python - Django 应用仅使用默认数据库来检索数据。如何将检索功能设置为mysql数据库

启用 grappelli 后,django adminplus 链接消失

php - 服务器中的磁盘配额超出警告

javascript - 在像谷歌这样的快速免费 CDN 上托管您自己的 JavaScript 脚本文件(Jquery 除外)?

python - pandas 在不同索引上连接 DataFrame

centos - Centos 6 64位上的pdftotext?