您尚未創建僅限靜態應用程序以指向您的靜態內容。 靜態內容將由nginx前端服務器呈現。
以下是具體步驟 -
In the control panel, create a new app
即如使用
/家/用戶名/ webapps /下askbot_server/myask /靜態的符號鏈接路徑 '符號鏈接靜態唯一的應用程序'。
Add the symlink app to your askbot site using '/m' as the URL path.
然後,
編輯/home/username/webapps/askbot_server/apache2/conf/httpd.conf改變這 - 如果你正在使用posgresql作爲
<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
而且你數據庫,啓用全文搜索,然後運行
python manage.py init_postgresql_full_text_search
是的,我忘了添加一個靜態的應用程序,我也添加了/ home/us結尾的尾部斜線ername/webapps /下askbot_server/myask /靜 – pije