目标WSGI脚本无法使用Python3加载为Python模块(Flask)(Apache),找不到修复



这是来自/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'

事实证明这是我自己的代码中的错误,无法加载,因为我的烧瓶应用程序中没有config_app函数

最新更新