> python manage.py gen_all
...
Traceback (most recent call last):
File "manage.py", line 21, in <module>
main()
File "manage.py", line 17, in main
execute_from_command_line(sys.argv)
File "F:\github\Django-Demos\DJ28-tyadmin_api_cli-demo\.venv\lib\site-packages\django\core\management\__init__.py", line 381, in execute_from_command_line
utility.execute()
File "F:\github\Django-Demos\DJ28-tyadmin_api_cli-demo\.venv\lib\site-packages\django\core\management\__init__.py", line 375, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "F:\github\Django-Demos\DJ28-tyadmin_api_cli-demo\.venv\lib\site-packages\django\core\management\base.py", line 323, in run_from_argv
self.execute(*args, **cmd_options)
File "F:\github\Django-Demos\DJ28-tyadmin_api_cli-demo\.venv\lib\site-packages\django\core\management\base.py", line 364, in execute
output = self.handle(*args, **options)
File "F:\github\Django-Demos\DJ28-tyadmin_api_cli-demo\.venv\lib\site-packages\tyadmin_api_cli\management\commands\gen_all.py", line 38, in handle
gen_all(setting_value, apps_list)
File "F:\github\Django-Demos\DJ28-tyadmin_api_cli-demo\.venv\lib\site-packages\tyadmin_api_cli\init_filter_serial_url_view.py", line 18, in gen_all
gen_antd_pages(project_name_settings, models_list)
File "F:\github\Django-Demos\DJ28-tyadmin_api_cli-demo\.venv\lib\site-packages\tyadmin_api_cli\deal_antd_pages.py", line 773, in gen_antd_pages
content = fr.read()
UnicodeDecodeError: 'gbk' codec can't decode byte 0x8d in position 574: illegal multibyte sequence
INSTALLED_APPS = [
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'tyadmin_api_cli',
'order',
]
...
TY_ADMIN_CONFIG = {
'GEN_APPS': [
'auth',
'order', # 自定义app
]
}