Centos7.5 一键脚本部署后 nginx 502 error
Closed this issue · 2 comments
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/share/python-3.8.9/lib/python3.8/site-packages/django/core/handlers/wsgi.py", line 133, in call
response = self.get_response(request)
File "/usr/share/python-3.8.9/lib/python3.8/site-packages/django/core/handlers/base.py", line 130, in get_response
response = self._middleware_chain(request)
File "/usr/share/python-3.8.9/lib/python3.8/site-packages/django/core/handlers/exception.py", line 49, in inner
response = response_for_exception(request, exc)
File "/usr/share/python-3.8.9/lib/python3.8/site-packages/django/core/handlers/exception.py", line 114, in response_for_exception
response = handle_uncaught_exception(request, get_resolver(get_urlconf()), sys.exc_info())
File "/usr/share/python-3.8.9/lib/python3.8/site-packages/django/core/handlers/exception.py", line 152, in handle_uncaught_exception
callback = resolver.resolve_error_handler(500)
File "/usr/share/python-3.8.9/lib/python3.8/site-packages/django/urls/resolvers.py", line 611, in resolve_error_handler
callback = getattr(self.urlconf_module, 'handler%s' % view_type, None)
File "/usr/share/python-3.8.9/lib/python3.8/site-packages/django/utils/functional.py", line 48, in get
res = instance.dict[self.name] = self.func(instance)
File "/usr/share/python-3.8.9/lib/python3.8/site-packages/django/urls/resolvers.py", line 591, in urlconf_module
return import_module(self.urlconf_name)
File "/usr/share/python-3.8.9/lib/python3.8/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1014, in _gcd_import
File "", line 991, in _find_and_load
File "", line 975, in _find_and_load_unlocked
File "", line 671, in _load_unlocked
File "", line 783, in exec_module
File "", line 219, in _call_with_frames_removed
File "./pwdselfservice/urls.py", line 3, in
import resetpwd.views
File "./resetpwd/views.py", line 15, in
from conf.local_settings import SCAN_CODE_TYPE, DING_MO_APP_ID, WEWORK_CORP_ID, WEWORK_AGENT_ID, HOME_URL, DING_CORP_ID
ImportError: cannot import name 'DING_MO_APP_ID' from 'conf.local_settings' (./conf/local_settings.py)
[pid: 5478|app: 0|req: 4/21] 192.168.230.56 () {38 vars in 694 bytes} [Wed Aug 4 01:07:12 2021] GET /favicon.ico => generated 0 bytes in 9 msecs (HTTP/1.0 500) 0 headers in 0 bytes (0 switches on core 3)
重新提交了一次,修复了你昨天晚上邮件中说的那个问题
你出现那个问题的原因是账号在企业钉钉中的邮箱配置部分可能存在问题,或者是账号在企业中未激活。