2017-05-31 1 views
0

という名前のモジュールがhere見つかりませんでした。私は例に対する私のインストールをテストしようとしたとき、私はuWSGIから次のエラーメッセージを取得しています一言で言えば「ジャンゴ」uWSGI

$ uwsgi --socket 127.0.0.1:3031 --chdir /home/user/~Env/proj0/proj0 --wsgi-file wsgi.py --master --processes 4 --threads 2 --stats 127.0.0.1:9191 
*** Starting uWSGI 2.0.15 (64bit) on [Wed May 31 14:10:35 2017] *** 
compiled with version: 4.8.5 20150623 (Red Hat 4.8.5-11) on 30 May 2017 20:50:53 
os: Linux-3.10.0-514.10.2.el7.x86_64 #1 SMP Fri Mar 3 00:04:05 UTC 2017 
nodename: echo.com 
machine: x86_64 
clock source: unix 
pcre jit disabled 
detected number of CPU cores: 2 
current working directory: /home/user/~Env 
detected binary path: /usr/local/bin/uwsgi 
chdir() to /home/user/~Env/proj0/proj0 
your processes number limit is 4096 
your memory page size is 4096 bytes 
detected max file descriptor number: 1024 
lock engine: pthread robust mutexes 
thunder lock: disabled (you can enable it with --thunder-lock) 
uwsgi socket 0 bound to TCP address 127.0.0.1:3031 fd 3 
Python version: 3.6.1 (default, May 29 2017, 14:21:37) [GCC 4.8.5 20150623 
(Red Hat 4.8.5-11)] 
Python main interpreter initialized at 0x1639580 
python threads support enabled 
your server socket listen backlog is limited to 100 connections 
your mercy for graceful operations on workers is 60 seconds 
mapped 415360 bytes (405 KB) for 8 cores 
*** Operational MODE: preforking+threaded *** 
Traceback (most recent call last): 
File "wsgi.py", line 12, in <module> 
    from django.core.wsgi import get_wsgi_application 
ModuleNotFoundError: No module named 'django' 
unable to load app 0 (mountpoint='') (callable not found or import error) 
*** no app loaded. going in full dynamic mode *** 
*** uWSGI is running in multiple interpreter mode *** 
spawned uWSGI master process (pid: 20065) 
spawned uWSGI worker 1 (pid: 20066, cores: 2) 
spawned uWSGI worker 2 (pid: 20067, cores: 2) 
spawned uWSGI worker 3 (pid: 20068, cores: 2) 
spawned uWSGI worker 4 (pid: 20069, cores: 2) 
*** Stats server enabled on 127.0.0.1:9191 fd: 15 *** 

だから、明らかにそれは私のwsgi.pyを見つけましたファイルではなく、Djangoです。私はuWSGIシステム全体、私のvirtualenvフォルダのレイアウト、またはそれをインストールすることを台無しにしたかどうかは分かりません。私はすぐに私のアプリを展開したいと思っていましたが、これはnginxとuWSGIを使いたいので優先します。私のディレクトリ構造は:

~Env--- 
    projectenv proj0 
      bin   proj0 
      include   __init__.py 
      libs    __pycache__ 
      .     settings.py 
          urls.py 
          views.py 
          wsgi.py 

この時点ですべてのヘルプは素晴らしいことです。ありがとう。

+0

WilliamR.Marchandこんにちは、ウィル@ –

+0

私にあなたのuwsgi.iniをしてください示しています。 GoogleグループのDjangoの素敵な人たちからヒントを得た後、私は悟りの旅に出た。それは20分前に終わったと信じている。私は最初の問題を解決することができました。私のchdirは私の1つのディレクトリから外れていました。そして、古くなったhow-toに従うという問題を解決しなければなりませんでした。しかし、私は辛抱強く、物語を伝えることができます。私は後で解決策をフォローアップします。今ではウォッカ&トニックが私に電話しています... – Joliet

+0

私のchdirが間違っていたので、前にその問題を覚えています。あなたの解決策が見つかりました。何かが必要な場合は教えてください。 –

答えて

関連する問題