複数のDjangoのアプリケーションをApacheに連携させたい。
概要
複数のDjangoのアプリケーションをApacheと連携する方法について。
の続きみたいなもんです。
参照情報は↓です。
環境
です。
httpd.confの設定
WSGIScriptAlias /python_django/project/ippan/ippan/wsgi.py WSGIScriptAlias /python_django/project/tokubetsu/tokubetsu/wsgi.py WSGIPythonPath /python_django/project/ippan:/python_django/project/tokubetsu <Directory /python_django/project/ippan/ippan> <Files wsgi.py> Require all granted </Files> </Directory> <Directory /python_django/project/tokubetsu/tokubetsu> <Files wsgi.py> Require all granted </Files> </Directory>
こんな感じに設定することで、複数のDjangoアプリケーションをApacheと連携させることができます。ポイントは「WSGIPythonPath」の値を「コロン」で区切ることです。Windowsの場合は「セミコロン」が区切りのようです。
まとめ
早く英語の1次情報を読めるようになりたい。