Djangoは500内部サーバーエラー(apacheの2.4.10は、Ubuntu 15.04、ジャンゴ1.9.6)ジャンゴ500内部サーバーエラー "がないモジュールの名前ジャンゴ"
Apacheのログを返す:
[wsgi:warn] mod_wsgi: Compiled for Python/3.4.2.
[wsgi:warn] mod_wsgi: Runtime using Python/3.4.3.
[mpm_event:notice] AH00489: Apache/2.4.10 (Ubuntu) mod_wsgi/4.3.0 Python/3.4.3 configured -- resuming normal operations
[core:notice] [pid 9973:tid 140000454645632] AH00094: Command line: '/usr/sbin/apache2'
[wsgi:error] mod_wsgi (pid=9976): Target WSGI script '/home/user/KeyShare/KeyShare/wsgi.py' cannot be loaded as Python module.
[wsgi:error] mod_wsgi (pid=9976): Exception occurred processing WSGI script '/home/user/KeyShare/KeyShare/wsgi.py'.
[wsgi:error] traceback (most recent call last):
[wsgi:error] File "/home/user/KeyShare/KeyShare/wsgi.py", line 12, in <module>
[wsgi:error] from django.core.wsgi import get_wsgi_application
[wsgi:error] ImportError: No module named 'django'
/など/ apache2の/サイト利用可能/ 000-は、default.confファイル:
Alias /static /home/user/proj/Gestione/static
<Directory /home/user/proj/Gestione/static>
Require all granted
</Directory>
<Directory /home/user/proj/proj>
<Files wsgi.py>
Require all granted
</Files>
</Directory>
WSGIDaemonProcess proj python-path=/home/user/proj:/home/user/.local/lib/python3.4/site-p$
WSGIProcessGroup proj
WSGIScriptAlias//home/user/proj/proj/wsgi.py
wsgy.py:
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "proj.settings")
application = get_wsgi_application()
私は助けを
感謝をvirtualenvを使用していない
関連する質問:HERE
編集:私は、root以外のユーザーとジャンゴをインストールしていた、今私は、rootユーザーとして、それを再インストールし、できます。おかげで誰も
uが 'ピップdjango'をインストールし使用してグローバルジャンゴをインストールしたのですか? – cutteeth
あなたが既にDjangoをインストールしていると思うなら、それをどのようにインストールしましたか? 'pip'を使ったのであれば、'/home/user/.local/lib/python3.4/'でpipを使いましたか? – Alasdair
WSGIDaemonProcessが動作していない[django apache configuration]の重複している可能性があります(http://stackoverflow.com/questions/38284814/django-apache-configuration-with-wsgidaemonprocess-not-working) – e4c5