정적 콘텐츠를 가리 키기 위해 정적 전용 앱을 만들지 않았습니다. 정적 콘텐츠는 nginx 프런트 엔드 서버에서 렌더링됩니다.
/홈/사용자 이름/웹 어플리케이션/askbot_server/myask/정적으로 심볼릭 링크 경로를 사용하여 '정적 전용 응용 프로그램에 대한 기호 링크'로
In the control panel, create a new app
즉 -
은 다음 단계입니다. 그런 다음
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/static – pije