Целевой сценарий WSGI не может быть загружен как модуль Python (Flask) (Apache) с использованием Python3, не может найти исправление - PullRequest
0 голосов
/ 12 октября 2018

Вот сообщение об ошибке из /var/log/apache2/error.log. Я не понимаю, почему это не распознается как модуль python

mod_wsgi: Compiled for Python/3.5.1+.

mod_wsgi: Runtime using Python/3.5.2.

AH00489: Apache/2.4.18 (Ubuntu) mod_wsgi/4.3.0 Python/3.5.2 configured -- resuming normal operations

AH00094: Command line: '/usr/sbin/apache2'

mod_wsgi (pid=26111): Target WSGI script '/var/www/smsblog/smsblog.wsgi' cannot be loaded as Python module.

mod_wsgi (pid=26111): Exception occurred processing WSGI script '/var/www/smsblog/smsblog.wsgi'.
 Traceback (most recent call last):
 File "/var/www/smsblog/smsblog.wsgi", line 15, in <module>
 app = smsblog.config_app('smsblog')
 AttributeError: module 'smsblog.smsblog' has no attribute 'config_app'

1 Ответ

0 голосов
/ 12 октября 2018

Оказывается, это была ошибка в моем собственном коде, его не удалось загрузить из-за того, что в моем приложении для колб не было функции config_app

...