You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(venv4archery) [root@18382f7f03f5 archery]# python3 manage.py makemigrations sql
/opt/venv4archery/lib/python3.9/site-packages/paramiko/transport.py:236: CryptographyDeprecationWarning: Blowfish has been deprecated
"class": algorithms.Blowfish,
Traceback (most recent call last):
File "/opt/archery/manage.py", line 10, in
execute_from_command_line(sys.argv)
File "/opt/venv4archery/lib/python3.9/site-packages/django/core/management/init.py", line 401, in execute_from_command_line
utility.execute()
File "/opt/venv4archery/lib/python3.9/site-packages/django/core/management/init.py", line 395, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/opt/venv4archery/lib/python3.9/site-packages/django/core/management/base.py", line 330, in run_from_argv
self.execute(*args, **cmd_options)
File "/opt/venv4archery/lib/python3.9/site-packages/django/core/management/base.py", line 368, in execute
self.check()
File "/opt/venv4archery/lib/python3.9/site-packages/django/core/management/base.py", line 392, in check
all_issues = checks.run_checks(
File "/opt/venv4archery/lib/python3.9/site-packages/django/core/checks/registry.py", line 70, in run_checks
new_errors = check(app_configs=app_configs, databases=databases)
File "/opt/venv4archery/lib/python3.9/site-packages/django/core/checks/urls.py", line 13, in check_url_config
return check_resolver(resolver)
File "/opt/venv4archery/lib/python3.9/site-packages/django/core/checks/urls.py", line 23, in check_resolver
return check_method()
File "/opt/venv4archery/lib/python3.9/site-packages/django/urls/resolvers.py", line 412, in check
for pattern in self.url_patterns:
File "/opt/venv4archery/lib/python3.9/site-packages/django/utils/functional.py", line 48, in get
res = instance.dict[self.name] = self.func(instance)
File "/opt/venv4archery/lib/python3.9/site-packages/django/urls/resolvers.py", line 593, in url_patterns
patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)
File "/opt/venv4archery/lib/python3.9/site-packages/django/utils/functional.py", line 48, in get
res = instance.dict[self.name] = self.func(instance)
File "/opt/venv4archery/lib/python3.9/site-packages/django/urls/resolvers.py", line 586, in urlconf_module
return import_module(self.urlconf_name)
File "/usr/local/python3/lib/python3.9/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1030, in _gcd_import
File "", line 1007, in _find_and_load
File "", line 986, in _find_and_load_unlocked
File "", line 680, in _load_unlocked
File "", line 850, in exec_module
File "", line 228, in _call_with_frames_removed
File "/opt/archery/archery/urls.py", line 7, in
path('api/', include(('sql_api.urls', 'sql_api'), namespace="sql_api")),
File "/opt/venv4archery/lib/python3.9/site-packages/django/urls/conf.py", line 34, in include
urlconf_module = import_module(urlconf_module)
File "/usr/local/python3/lib/python3.9/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1030, in _gcd_import
File "", line 1007, in _find_and_load
File "", line 986, in _find_and_load_unlocked
File "", line 680, in _load_unlocked
File "", line 850, in exec_module
File "", line 228, in _call_with_frames_removed
File "/opt/archery/sql_api/urls.py", line 7, in
from . import api_user, api_instance, api_workflow
File "/opt/archery/sql_api/api_user.py", line 6, in
from .pagination import CustomizedPagination
File "/opt/archery/sql_api/pagination.py", line 7, in
class CustomizedPagination(PageNumberPagination):
File "/opt/archery/sql_api/pagination.py", line 11, in CustomizedPagination
page_size = settings.REST_FRAMEWORK['PAGE_SIZE'] if 'PAGE_SIZE' in settings.REST_FRAMEWORK.keys() else 20
File "/opt/venv4archery/lib/python3.9/site-packages/django/conf/init.py", line 83, in getattr
val = getattr(self._wrapped, name)
AttributeError: 'Settings' object has no attribute 'REST_FRAMEWORK'
(venv4archery) [root@18382f7f03f5 archery]#
版本信息
应用版本/分支:v1.8.4
部署方式:Docker、手工部署
部署方式:Docker部署。
docker镜像:hhyo/archery:v1.8.4
The text was updated successfully, but these errors were encountered:
91dream
changed the title
[ bug ]请简要描述
[ bug ] python3 manage.py makemigrations sql 执行的时候报错
May 9, 2022
在提交 issue 前,请查阅以下资源,请先进行搜索来保证没有类似的 issue。
文档 | FAQ
重现步骤
python3 manage.py makemigrations sql 执行的时候报错
期待结果和实际结果
期待结果:
实际结果:
截图
错误日志
(venv4archery) [root@18382f7f03f5 archery]# python3 manage.py makemigrations sql
/opt/venv4archery/lib/python3.9/site-packages/paramiko/transport.py:236: CryptographyDeprecationWarning: Blowfish has been deprecated
"class": algorithms.Blowfish,
Traceback (most recent call last):
File "/opt/archery/manage.py", line 10, in
execute_from_command_line(sys.argv)
File "/opt/venv4archery/lib/python3.9/site-packages/django/core/management/init.py", line 401, in execute_from_command_line
utility.execute()
File "/opt/venv4archery/lib/python3.9/site-packages/django/core/management/init.py", line 395, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/opt/venv4archery/lib/python3.9/site-packages/django/core/management/base.py", line 330, in run_from_argv
self.execute(*args, **cmd_options)
File "/opt/venv4archery/lib/python3.9/site-packages/django/core/management/base.py", line 368, in execute
self.check()
File "/opt/venv4archery/lib/python3.9/site-packages/django/core/management/base.py", line 392, in check
all_issues = checks.run_checks(
File "/opt/venv4archery/lib/python3.9/site-packages/django/core/checks/registry.py", line 70, in run_checks
new_errors = check(app_configs=app_configs, databases=databases)
File "/opt/venv4archery/lib/python3.9/site-packages/django/core/checks/urls.py", line 13, in check_url_config
return check_resolver(resolver)
File "/opt/venv4archery/lib/python3.9/site-packages/django/core/checks/urls.py", line 23, in check_resolver
return check_method()
File "/opt/venv4archery/lib/python3.9/site-packages/django/urls/resolvers.py", line 412, in check
for pattern in self.url_patterns:
File "/opt/venv4archery/lib/python3.9/site-packages/django/utils/functional.py", line 48, in get
res = instance.dict[self.name] = self.func(instance)
File "/opt/venv4archery/lib/python3.9/site-packages/django/urls/resolvers.py", line 593, in url_patterns
patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)
File "/opt/venv4archery/lib/python3.9/site-packages/django/utils/functional.py", line 48, in get
res = instance.dict[self.name] = self.func(instance)
File "/opt/venv4archery/lib/python3.9/site-packages/django/urls/resolvers.py", line 586, in urlconf_module
return import_module(self.urlconf_name)
File "/usr/local/python3/lib/python3.9/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1030, in _gcd_import
File "", line 1007, in _find_and_load
File "", line 986, in _find_and_load_unlocked
File "", line 680, in _load_unlocked
File "", line 850, in exec_module
File "", line 228, in _call_with_frames_removed
File "/opt/archery/archery/urls.py", line 7, in
path('api/', include(('sql_api.urls', 'sql_api'), namespace="sql_api")),
File "/opt/venv4archery/lib/python3.9/site-packages/django/urls/conf.py", line 34, in include
urlconf_module = import_module(urlconf_module)
File "/usr/local/python3/lib/python3.9/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1030, in _gcd_import
File "", line 1007, in _find_and_load
File "", line 986, in _find_and_load_unlocked
File "", line 680, in _load_unlocked
File "", line 850, in exec_module
File "", line 228, in _call_with_frames_removed
File "/opt/archery/sql_api/urls.py", line 7, in
from . import api_user, api_instance, api_workflow
File "/opt/archery/sql_api/api_user.py", line 6, in
from .pagination import CustomizedPagination
File "/opt/archery/sql_api/pagination.py", line 7, in
class CustomizedPagination(PageNumberPagination):
File "/opt/archery/sql_api/pagination.py", line 11, in CustomizedPagination
page_size = settings.REST_FRAMEWORK['PAGE_SIZE'] if 'PAGE_SIZE' in settings.REST_FRAMEWORK.keys() else 20
File "/opt/venv4archery/lib/python3.9/site-packages/django/conf/init.py", line 83, in getattr
val = getattr(self._wrapped, name)
AttributeError: 'Settings' object has no attribute 'REST_FRAMEWORK'
(venv4archery) [root@18382f7f03f5 archery]#
版本信息
应用版本/分支:v1.8.4
部署方式:Docker、手工部署
部署方式:Docker部署。
docker镜像:hhyo/archery:v1.8.4
The text was updated successfully, but these errors were encountered: