2

http://community.webfaction.com/questions/8400/need-help-for-askbot-installationの指示に従って、askbot スクリプトを webfaction サーバーにデプロイしました。また、python2.7 manage.py collectstatic を実行しましたが、DEBUG 設定は False です。

私のウェブサイトにアクセスすると、次の画像のように見えます: http://dl.dropbox.com/u/750152/askbot.png

css と画像のレンダリングはすべてなくなりました。いくつかのステップがありませんか?

4

1 に答える 1

2

静的コンテンツを指す静的専用アプリを作成していません。静的コンテンツは、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_search
于 2012-10-17T17:41:27.500 に答える