我按照http://community.webfaction.com/questions/8400/need-help-for-askbot-installation上的说明将askbot脚本部署到webfaction服务器上。我还做了运行python2.7的manage.py集合和调试设置是假的。
当我访问我的网站时,它看起来如下图所示:http://dl.dropbox.com/u/750152/askbot.png
所有的css和图像渲染都消失了。我是不是错过了什么步骤?
发布于 2012-10-18 01:41:28
您尚未创建仅静态应用程序来指向您的静态内容。静态内容将由nginx前端服务器呈现。
以下是步骤-
In the control panel, create a new app 即“指向纯静态应用的符号链接”,使用
符号链接路径为/home/username/webapps/askbot_server/myask/static。
Add the symlink app to your askbot site using '/m' as the URL path.然后,
编辑/home/username/webapps/askbot_server/apache2/conf/httpd.conf以将其更改为-
<Directory /home/username/webapps/askbot_server/htdocs>
AddHandler wsgi-script .py
</Directory>
to
WSGIScriptAlias / /home/username/webapps/askbot_server/myask/django.wsgi
Restart your Apache with /home/username/webapps/askbot_server/apache2/bin/restart另外,如果您使用posgresql作为数据库,则要启用全文搜索,请运行
python manage.py init_postgresql_full_text_searchhttps://stackoverflow.com/questions/12933876
复制相似问题