django + uwsgi + nginx
Пытаюсь тут поднять эту связку, но uwsgi сыплет ошибки uwsgi.ini
[uwsgi]
chdir=/home/algiz/code/mandelbort/mand_server/mand_server/
http=127.0.0.1:8001
wsgi-file=/home/algiz/code/mandelbort/mand_server/mand_server/wsgi.py
pythonpath=/home/algiz/anaconda3/bin/
master=True
pidfile=/tmp/project-master.pid
vacuum=True
max-requests=5000
daemonize=/var/log/uwsgi/mand_serv.log
*** Starting uWSGI 2.0.14 (64bit) on [Mon Feb 27 10:49:13 2017] ***
compiled with version: 4.9.2 on 21 February 2017 08:39:53
os: Linux-2.6.32-042stab116.2 #1 SMP Fri Jun 24 15:33:57 MSK 2016
nodename: 7cc81ed46c
machine: x86_64
clock source: unix
pcre jit disabled
detected number of CPU cores: 1
current working directory: /home/algiz/code/mandelbort/mand_server
writing pidfile to /tmp/project-master.pid
detected binary path: /home/algiz/anaconda3/bin/uwsgi
chdir() to /home/algiz/code/mandelbort/mand_server/mand_server/
your processes number limit is 1030696
your memory page size is 4096 bytes
detected max file descriptor number: 65536
lock engine: pthread robust mutexes
thunder lock: disabled (you can enable it with --thunder-lock)
uWSGI http bound on 127.0.0.1:8001 fd 4
uwsgi socket 0 bound to TCP address 127.0.0.1:35836 (port auto-assigned) fd 3
Python version: 3.6.0 |Anaconda 4.3.0 (64-bit)| (default, Dec 23 2016, 12:22:00) [GCC 4.4.7 20120313 (Red Hat 4.4.7-1)]
*** Python threads support is disabled. You can enable it with --enable-threads ***
Python main interpreter initialized at 0x106cf70
your server socket listen backlog is limited to 100 connections
your mercy for graceful operations on workers is 60 seconds
mapped 145520 bytes (142 KB) for 1 cores
*** Operational MODE: single process ***
added /home/algiz/anaconda3/bin/ to pythonpath.
Traceback (most recent call last):
File "/home/algiz/code/mandelbort/mand_server/mand_server/wsgi.py", line 16, in <module>
application = get_wsgi_application()
File "/home/algiz/anaconda3/lib/python3.6/site-packages/django/core/wsgi.py", line 13, in get_wsgi_application
django.setup(set_prefix=False)
File "/home/algiz/anaconda3/lib/python3.6/site-packages/django/__init__.py", line 22, in setup
configure_logging(settings.LOGGING_CONFIG, settings.LOGGING)
File "/home/algiz/anaconda3/lib/python3.6/site-packages/django/conf/__init__.py", line 53, in __getattr__
self._setup(name)
File "/home/algiz/anaconda3/lib/python3.6/site-packages/django/conf/__init__.py", line 41, in _setup
self._wrapped = Settings(settings_module)
File "/home/algiz/anaconda3/lib/python3.6/site-packages/django/conf/__init__.py", line 97, in __init__
mod = importlib.import_module(self.SETTINGS_MODULE)
File "/home/algiz/anaconda3/lib/python3.6/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 978, in _gcd_import
File "<frozen importlib._bootstrap>", line 961, in _find_and_load
File "<frozen importlib._bootstrap>", line 936, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 205, in _call_with_frames_removed
File "<frozen importlib._bootstrap>", line 978, in _gcd_import
File "<frozen importlib._bootstrap>", line 961, in _find_and_load
File "<frozen importlib._bootstrap>", line 948, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'mand_server'