Был произведен апгрейд Убунты с 12.04 до 14.04, потом установлен вот этот софт. На Убунте ничего, кроме родного, не стояло. Но после установки, при заходе на сервер, получаю ошибку 500. В error.log значится следующее: [Wed Oct 05 08:47:09.842846 2016] [:error] [pid 20302:tid 139929178838784] [client 10.243.11.54:51178] mod_wsgi (pid=20302): Target WSGI script '/var/venv/severcart/conf/wsgi_prod.py' cannot be loaded as Python module. [Wed Oct 05 08:47:09.843077 2016] [:error] [pid 20302:tid 139929178838784] [client 10.243.11.54:51178] mod_wsgi (pid=20302): Exception occurred processing WSGI script '/var/venv/severcart/conf/wsgi_prod.py'. [Wed Oct 05 08:47:09.843353 2016] [:error] [pid 20302:tid 139929178838784] [client 10.243.11.54:51178] Traceback (most recent call last): [Wed Oct 05 08:47:09.843556 2016] [:error] [pid 20302:tid 139929178838784] [client 10.243.11.54:51178] File "/var/venv/severcart/conf/wsgi_prod.py", line 31, in <module> [Wed Oct 05 08:47:09.843640 2016] [:error] [pid 20302:tid 139929178838784] [client 10.243.11.54:51178] application = get_wsgi_application() [Wed Oct 05 08:47:09.843818 2016] [:error] [pid 20302:tid 139929178838784] [client 10.243.11.54:51178] File "/var/venv/lib/python3.4/site-packages/django/core/wsgi.py", line 13, in get_wsgi_application [Wed Oct 05 08:47:09.843921 2016] [:error] [pid 20302:tid 139929178838784] [client 10.243.11.54:51178] django.setup() [Wed Oct 05 08:47:09.844155 2016] [:error] [pid 20302:tid 139929178838784] [client 10.243.11.54:51178] File "/var/venv/lib/python3.4/site-packages/django/__init__.py", line 17, in setup [Wed Oct 05 08:47:09.844271 2016] [:error] [pid 20302:tid 139929178838784] [client 10.243.11.54:51178] configure_logging(settings.LOGGING_CONFIG, settings.LOGGING) [Wed Oct 05 08:47:09.844394 2016] [:error] [pid 20302:tid 139929178838784] [client 10.243.11.54:51178] File "/var/venv/lib/python3.4/site-packages/django/conf/__init__.py", line 55, in __getattr__ [Wed Oct 05 08:47:09.844485 2016] [:error] [pid 20302:tid 139929178838784] [client 10.243.11.54:51178] self._setup(name) [Wed Oct 05 08:47:09.844683 2016] [:error] [pid 20302:tid 139929178838784] [client 10.243.11.54:51178] File "/var/venv/lib/python3.4/site-packages/django/conf/__init__.py", line 43, in _setup [Wed Oct 05 08:47:09.844792 2016] [:error] [pid 20302:tid 139929178838784] [client 10.243.11.54:51178] self._wrapped = Settings(settings_module) [Wed Oct 05 08:47:09.844901 2016] [:error] [pid 20302:tid 139929178838784] [client 10.243.11.54:51178] File "/var/venv/lib/python3.4/site-packages/django/conf/__init__.py", line 99, in __init__ [Wed Oct 05 08:47:09.845054 2016] [:error] [pid 20302:tid 139929178838784] [client 10.243.11.54:51178] mod = importlib.import_module(self.SETTINGS_MODULE) [Wed Oct 05 08:47:09.845280 2016] [:error] [pid 20302:tid 139929178838784] [client 10.243.11.54:51178] File "/usr/lib/python3.4/importlib/__init__.py", line 109, in import_module [Wed Oct 05 08:47:09.845384 2016] [:error] [pid 20302:tid 139929178838784] [client 10.243.11.54:51178] return _bootstrap._gcd_import(name[level:], package, level) [Wed Oct 05 08:47:09.845489 2016] [:error] [pid 20302:tid 139929178838784] [client 10.243.11.54:51178] File "<frozen importlib._bootstrap>", line 2254, in _gcd_import [Wed Oct 05 08:47:09.845664 2016] [:error] [pid 20302:tid 139929178838784] [client 10.243.11.54:51178] File "<frozen importlib._bootstrap>", line 2237, in _find_and_load [Wed Oct 05 08:47:09.845831 2016] [:error] [pid 20302:tid 139929178838784] [client 10.243.11.54:51178] File "<frozen importlib._bootstrap>", line 2226, in _find_and_load_unlocked [Wed Oct 05 08:47:09.845970 2016] [:error] [pid 20302:tid 139929178838784] [client 10.243.11.54:51178] File "<frozen importlib._bootstrap>", line 1200, in _load_unlocked [Wed Oct 05 08:47:09.846183 2016] [:error] [pid 20302:tid 139929178838784] [client 10.243.11.54:51178] File "<frozen importlib._bootstrap>", line 1129, in _exec [Wed Oct 05 08:47:09.846317 2016] [:error] [pid 20302:tid 139929178838784] [client 10.243.11.54:51178] File "<frozen importlib._bootstrap>", line 1471, in exec_module [Wed Oct 05 08:47:09.846423 2016] [:error] [pid 20302:tid 139929178838784] [client 10.243.11.54:51178] File "<frozen importlib._bootstrap>", line 321, in _call_with_frames_removed [Wed Oct 05 08:47:09.846607 2016] [:error] [pid 20302:tid 139929178838784] [client 10.243.11.54:51178] File "/var/venv/severcart/conf/settings.py", line 18, in <module> [Wed Oct 05 08:47:09.846710 2016] [:error] [pid 20302:tid 139929178838784] [client 10.243.11.54:51178] from settings_prod import * [Wed Oct 05 08:47:09.846900 2016] [:error] [pid 20302:tid 139929178838784] [client 10.243.11.54:51178] File "/var/venv/severcart/conf/settings_prod.py", line 25, in <module> [Wed Oct 05 08:47:09.847035 2016] [:error] [pid 20302:tid 139929178838784] [client 10.243.11.54:51178] json_data=open(os.path.join(BASE_DIR, 'conf', 'secrets.json')).read() [Wed Oct 05 08:47:09.847256 2016] [:error] [pid 20302:tid 139929178838784] [client 10.243.11.54:51178] FileNotFoundError: [Errno 2] No such file or directory: '/var/venv/severcart/conf/secrets.json'Нужна помощь
|