django v1.x版本 启动错误:SyntaxError: Generator expression must be parenthesized
django v1.x版本 启动错误:SyntaxError: Generator expression must be parenthesized
报错信息:
Failed to get real commands on module "mysite": python process died with code 1: Traceback (most recent call last): File "E:JetBrainsPyCharm 2020.1pluginspythonhelperspycharm\_jb_manage_tasks_provider.py", line 25, in <module> django.setup() File "E:PycharmProjectspythonvenvlibsite-packagesdjango\__init__.py", line 27, in setup apps.populate(settings.INSTALLED_APPS) File "E:PycharmProjectspythonvenvlibsite-packagesdjangoappsegistry.py", line 85, in populate app_config = AppConfig.create(entry) File "E:PycharmProjectspythonvenvlibsite-packagesdjangoappsconfig.py", line 94, in create module = import_module(entry) File "C:UsersAdministratorAppDataLocalProgramsPythonPython37libimportlib\__init__.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "<frozen importlib._bootstrap>", line 1006, in _gcd_import File "<frozen importlib._bootstrap>", line 983, in _find_and_load File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 677, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 728, in exec_module File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed File "E:PycharmProjectspythonvenvlibsite-packagesdjangocontribadmin\__init__.py", line 4, in <module> from django.contrib.admin.filters import ( File "E:PycharmProjectspythonvenvlibsite-packagesdjangocontribadminfilters.py", line 10, in <module> from django.contrib.admin.options import IncorrectLookupParameters File "E:PycharmProjectspythonvenvlibsite-packagesdjangocontribadminoptions.py", line 12, in <module> from django.contrib.admin import helpers, widgets File "E:PycharmProjectspythonvenvlibsite-packagesdjangocontribadminwidgets.py", line 152 "%s=%s" % (k, v) for k, v in params.items(), ^ SyntaxError: Generator expression must be parenthesized
hmoban主题是根据ripro二开的主题,极致后台体验,无插件,集成会员系统
自学咖网 » django v1.x版本 启动错误:SyntaxError: Generator expression must be parenthesized
自学咖网 » django v1.x版本 启动错误:SyntaxError: Generator expression must be parenthesized