如何使用的cPanel主办Django的网站? [英] How to host Django website using cPanel?
问题描述
我是新来的网站托管的世界,尤其是在的cPanel平台。我有使用Python语言,这使得使用Django还开发了一个网站。我主持这个网站在的cPanel。不过,这并不似乎是工作。
I am new to the world of website hosting, especially in cPanel platform. I have a website which is developed using Python language, which makes use of Django also. I have hosted this website in cPanel. But it doesn't seems to be working.
当我浏览我的网站域名(www.def.com),现在它显示site.wsgi(WSGI文件)文件本身。
When I browse my website domain (www.def.com), now it displays site.wsgi (wsgi file) file as such.
我知道,在默认情况下,的cPanel不支持Django的。通过使用SSH,我已经安装了Django的。但我不知道如何配置相同。将是一件好事,如果我能得到关于如何在cPanel中安装和配置的Django一步一步的指示。
I could know that by default, CPanel doesn't support Django. Using SSH, I have installed Django. But I am not sure how to configure the same. Would be good if I can get a step by step instructions on how to install and configure Django in cPanel.
仅供参考,这是GoDaddy的,而且也没有一个虚拟专用服务器的共享网络托管服务器或不具有root权限。通过使用WSGI文件将如何举办这个网站。
FYI, This is a shared web hosting server from GoDaddy and that too not a virtual Private server or doesn't have root access. How will host this site by using wsgi file.
推荐答案
虽然看上去的cPanel不支持Django的应用程序开箱即用,谷歌的结果使我相信的它可能使用更手动方法是不可能的。
Although it seems CPanel does not support Django apps "out of the box", google results lead me to believe it might be possible using a more manual method.
此外,拥有的cPanel 这个插件Django的/ Python安装
Additionally, CPanel has this plugin for Django/python installation
请注意,我没有尝试过任何上述情况,但后者似乎更有前途,因为它已被更多的最近更新(2015年,而不是2011年的博客条目)。
Please note that I have not tried any of the above, but the latter seems more promising since it has been updated more recently (2015, as opposed to the 2011 blog entry).
这篇关于如何使用的cPanel主办Django的网站?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!