-
Notifications
You must be signed in to change notification settings - Fork 5.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
编译安装jumpserverv3.10.3处理国际化时报错:TypeError: unsupported operand type(s) for |: 'ModelBase' and 'type'[Question] #12669
Labels
🤔 Question
Don't know how to use or why | 提问
Comments
python 版本升级到 v3.11.4。 |
好的,我试一下,谢谢。 |
(py4) root@monitor:/opt/jumpserver-v3.10.3# python apps/manage.py compilemessages
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
(py3) root@monitor:/opt/jumpserver-v3.10.3# python apps/manage.py compilemessages
ALLOWED_HOSTS:
Traceback (most recent call last):
File "/opt/jumpserver-v3.10.3/apps/manage.py", line 27, in
execute_from_command_line(sys.argv)
File "/opt/py3/lib/python3.9/site-packages/django/core/management/init.py", line 419, in execute_from_command_line
utility.execute()
File "/opt/py3/lib/python3.9/site-packages/django/core/management/init.py", line 395, in execute
django.setup()
File "/opt/py3/lib/python3.9/site-packages/django/init.py", line 24, in setup
apps.populate(settings.INSTALLED_APPS)
File "/opt/py3/lib/python3.9/site-packages/django/apps/registry.py", line 122, in populate
app_config.ready()
File "/opt/jumpserver-v3.10.3/apps/accounts/apps.py", line 9, in ready
from . import signal_handlers # noqa
File "/opt/jumpserver-v3.10.3/apps/accounts/signal_handlers.py", line 10, in
from audits.signal_handlers import create_activities
File "/opt/jumpserver-v3.10.3/apps/audits/signal_handlers/init.py", line 2, in
from .login_log import *
File "/opt/jumpserver-v3.10.3/apps/audits/signal_handlers/login_log.py", line 105, in
def send_login_info_to_reviewers(instance: UserLoginLog | str, auth_acl_id):
TypeError: unsupported operand type(s) for |: 'ModelBase' and 'type'
The text was updated successfully, but these errors were encountered: