Всем доброго времени суток!
Тема эта тысячу раз поднималась, поэтому заранее прошу прощения.
Перепробывал уже все что можно и нельзя. Нужен взгляд со стороны.
При старте uwsgi пояляется вот такая ршибка
(propython)django@propython:~/virt/propython/bin/propython$ uwsgi demouwsgi.ini
[uWSGI] getting INI configuration from demouwsgi.ini
Starting uWSGI 2.0.7 (64bit) on [Mon Nov 3 13:30:49 2014]
compiled with version: 4.6.3 on 23 October 2014 13:23:25
os: Linux-3.2.0-23-generic #36-Ubuntu SMP Tue Apr 10 20:39:51 UTC 2012
nodename: propython.noip.me
machine: x86_64
clock source: unix
detected number of CPU cores: 1
current working directory: /home/django/virt/propython/bin/propython
detected binary path: /usr/local/bin/uwsgi
!!! no internal routing support, rebuild with pcre support !!!
your processes number limit is 556
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 :9191 fd 3
Python version: 2.7.3 (default, Feb 27 2014, 20:09:21) [GCC 4.6.3]
Set PythonHome to /home/django/virt/propython
Python main interpreter initialized at 0xb3f040
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 249216 bytes (243 KB) for 4 cores
Operational MODE: preforking+threaded
added /home/django/virt/propython/bin/ to pythonpath.
Traceback (most recent call last):
File "/home/django/virt/propython/local/lib/python2.7/site-packages/django/core/wsgi.py", line 14, in get_wsgi_application
django.setup()
File "/home/django/virt/propython/local/lib/python2.7/site-packages/django/init.py", line 20, in setup
configure_logging(settings.LOGGING_CONFIG, settings.LOGGING)
File "/home/django/virt/propython/local/lib/python2.7/site-packages/django/conf/init.py", line 46, in getattr
self._setup(name)
File "/home/django/virt/propython/local/lib/python2.7/site-packages/django/conf/init.py", line 40, in _setup
% (desc, ENVIRONMENT_VARIABLE))
django.core.exceptions.ImproperlyConfigured: Requested setting LOGGING_CONFIG, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings.
unable to load app 0 (mountpoint='') (callable not found or import error)
Traceback (most recent call last):
File "/home/django/virt/propython/bin/propython/propython/wsgi.py", line 7, in <module>
application = get_wsgi_application()
File "/home/django/virt/propython/local/lib/python2.7/site-packages/django/core/wsgi.py", line 14, in get_wsgi_application
django.setup()
File "/home/django/virt/propython/local/lib/python2.7/site-packages/django/init.py", line 21, in setup
apps.populate(settings.INSTALLED_APPS)
File "/home/django/virt/propython/local/lib/python2.7/site-packages/django/apps/registry.py", line 85, in populate
app_config = AppConfig.create(entry)
File "/home/django/virt/propython/local/lib/python2.7/site-packages/django/apps/config.py", line 87, in create
module = import_module(entry)
File "/usr/lib/python2.7/importlib/init.py", line 37, in import_module
import(name)
ImportError: No module named menu
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: 8479)
spawned uWSGI worker 1 (pid: 8480, cores: 2)
spawned uWSGI worker 2 (pid: 8481, cores: 2)
Использую виртуальное окружение в папке virt
Вот пути и структура проекта
(propython)django@propython:~/virt/propython/bin/propython/propython$ ll
итого 36
drwxrwxr-x 2 django django 4096 окт. 26 21:25 ./
drwxrwxr-x 7 django django 4096 окт. 26 20:52 ../
-rw-r--r-- 1 django django 0 окт. 23 16:31 db.sqlite3
-rw-rw-r-- 1 django django 0 окт. 23 13:39 init.py
-rw-rw-r-- 1 django django 150 окт. 23 13:59 init.pyc
-rw-rw-r-- 1 django django 2145 окт. 26 21:25 settings.py
-rw-rw-r-- 1 django django 2390 окт. 26 21:25 settings.pyc
-rw-rw-r-- 1 django django 278 окт. 24 14:09 urls.py
-rw-rw-r-- 1 django django 351 окт. 24 14:11 urls.pyc
-rw-rw-r-- 1 django django 357 нояб. 3 13:19 wsgi.py
-rw-rw-r-- 1 django django 611 окт. 23 13:59 wsgi.pyc
Вот содержимое файла demouwsgi.ini
[uwsgi]
socket = :9191
wsgi-file = /home/django/virt/propython/bin/propython/propython/wsgi.py
chdir = /home/django/virt/propython/bin/propython/propython
master = true
processes = 2
threads = 2
virtualenv = /home/django/virt/propython
touch-reload = /home/django/virt/propython/bin/propython/reload.txt
module = django.core.wsgi:get_wsgi_application()
pythonpath = /home/django/virt/propython/bin
Вот содержимое wsgi.py
import os, sys, site, django.core.wsgi
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "settings")
from django.core.wsgi import get_wsgi_application
application = get_wsgi_application()
Помогите пожалуйста неделю уже мучаюсь. Заранее спасибо.
Updated 3 Nov. 2014, 12:57 by medvedeffalexandr.