【问题标题】:Web Hosting of Django ApplicationDjango 应用程序的虚拟主机
【发布时间】:2011-05-14 07:11:28
【问题描述】:

我发现了一个用 Django (busylissy.com) 编写的不错的项目管理应用程序。不幸的是,这些人在顶部写道,他们计划将其关闭并将其作为开源发布以供进一步开发。我想用基本的 linux 程序将它托管在 ixwebhosting.com 上,但我不确定这是否可能,所以这基本上是个问题。

我只能访问基本配置,所以我无法在该服务器上安装任何东西。在 requirements.txt 中,应用列出了以下内容:

 # **Django**
 Django==1.1

 # **Imaging**
 http://effbot.org/downloads/Imaging-1.1.6.tar.gz

 # **STDImage**
 -e git+git://github.com/gearheart/django-stdimage.git#egg=stdimage

 # **Django AuthOpenID**
 -e hg+https://wunki@bitbucket.org/benoitc/django-authopenid#egg=django_authopenid

 # **Django registration**
 -e hg+https://wunki@bitbucket.org/ubernostrum/django-registration#egg=registration

 # **Tagging**
 -e svn+http://django-tagging.googlecode.com/svn/trunk#egg=tagging

 # **Authority**
 -e hg+https://wunki@bitbucket.org/jezdez/django-authority#egg=authority

 # **Filebrowser**
 -e svn+http://django-filebrowser.googlecode.com/svn/trunk#egg=filebrowser

 # **Markdown**
 -e git+git://gitorious.org/python-markdown/mainline.git#egg=markdown

 # **Treebeard**
 -e svn+http://django-treebeard.googlecode.com/svn/trunk/#egg=treebeard

 # **Locale url**
 -e svn+http://django-localeurl.googlecode.com/svn/trunk/#egg=localeurl

 # **Thumbnail**
 -e hg+https://sorl-thumbnail.googlecode.com/hg/#egg=sorl-thumbnail

     # **DateUtil**
 http://labix.org/download/python-dateutil/python-dateutil-1.4.1.tar.gz

有没有机会构建一个包含所有这些先决条件的独立版本,除了 mod_python 之外不需要太多,还是我应该开始寻找其他工具?

【问题讨论】:

    标签: python django installation web-hosting


    【解决方案1】:

    你可以使用 virtualenv (http://pypi.python.org/pypi/virtualenv)

    【讨论】:

      【解决方案2】:

      它具有需要编译代码的依赖项(例如 PIL)。我不太确定“基本 linux 程序”是什么意思,或者“自包含”是什么意思,但是在任何普通的 linux 机器上安装这些依赖项都是微不足道的。在一些没有可用的编译库并且不允许您添加自己的库等的共享托管平台上,您会遇到麻烦。

      同样不要使用mod_python,使用mod_wsgi

      【讨论】:

      • 实际上,它是一个共享托管平台,专用的 linux 服务器成本要高得多(我可以想象在那里安装任何东西都相当简单)
      • 我不确定您的 linux 管理员能力,但我推荐 linode.com - 似乎比 ix 便宜。另外,不确定您所说的自包含是什么意思,但也许您正在寻找 virtualenv?
      猜你喜欢
      • 1970-01-01
      • 2016-03-10
      • 2012-05-27
      • 2022-11-18
      • 1970-01-01
      • 2013-01-13
      • 1970-01-01
      • 2015-08-21
      • 1970-01-01
      相关资源
      最近更新 更多