Всем привет. Проблема в следующем: Использую Nginx+Uwsgi+ Supervisor . Все работало норм, а после ребута сервера при попытке войти на сайт получаю ошибку. В логах Uwsgi Traceback (most recent call last): File "./excursion/wsgi.py", line 7, in <module> application = get_wsgi_application() File "/home/admin/excursion/myenv/lib/python3.4/site-packages/django/core/wsgi.py", line 13, in get_wsgi_application django.setup(set_prefix=False) File "/home/admin/excursion/myenv/lib/python3.4/site-packages/django/__init__.py", line 27, in setup apps.populate(settings.INSTALLED_APPS) File "/home/admin/excursion/myenv/lib/python3.4/site-packages/django/apps/registry.py", line 85, in populate app_config = AppConfig.create(entry) File "/home/admin/excursion/myenv/lib/python3.4/site-packages/django/apps/config.py", line 110, in create return cls(entry, module) File "/home/admin/excursion/myenv/lib/python3.4/site-packages/django/apps/config.py", line 40, in __init__ self.path = self._path_from_module(app_module) File "/home/admin/excursion/myenv/lib/python3.4/site-packages/django/apps/config.py", line 73, in _path_from_module "with a 'path' class attribute." % (module, paths)) django.core.exceptions.ImproperlyConfigured: The app module <module 'ex' (namespace)> has multiple filesystem locations (['./ex', '/home/admin/excursion/ex']); you must configure this app with an AppConfig subclass with a 'path' class attribute. Причем

>>> from django.apps import apps
>>> apps.get_app_config('ex').path
'/home/admin/excursion/ex'

И из консоли все запускается нормально:

uwsgi --http :8000 --module excursion.wsgi

Пробовал добавить path в apps.py - результат тот же...

Помогите плиз, это ставит меня в тупик. Вот конфиги Uwsgi:

[uwsgi]
socket = /home/admin/excursion/uwsgi.sock
home = /home/admin/excursion/myenv
chdir = /home/admin/excursion/
plugins = python3
module = excursion.wsgi
processes = 2
max-requests = 5000
buffer-size = 32768
harakiri = 30
master
no-orphans
reload-mercy = 8
chmod-socket = 666
uid = www-data
gid = www-data

Конфиги супервизора:

[program:excursions]
command=/usr/bin/uwsgi --ini /home/admin/excursion/docs/uwsgi.ini
user=www-data
stdout_logfile=/home/admin/excursion/logs/uwsgi.log
stderr_logfile=/home/admin/excursion/logs/uwsgi_err.log
directory=/home/admin/excursion/
autostart=true
autorestart=true
redirect_stderr=true
stopsignal=QUIT