why my django site in hosting (alwaysdata) cant show my page

前提是你 提交于 2019-12-07 20:27:04

问题


I have deployed Django at alwaysdata.com,

this is my main page on http://zjm1126.alwaysdata.net/ :

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

my project is like this :

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 .

thanks


回答1:


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

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.

I hope it helps




回答2:


You have a misconfigured server. It doesn't know that pages in that directory should by default should be handled by Python. This was covered in Deploying Django at alwaysdata.com.



来源:https://stackoverflow.com/questions/4435406/why-my-django-site-in-hosting-alwaysdata-cant-show-my-page

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!