报错提示如图
我下载的模版是仓库中的v1.0.2
Traceback (most recent call last):
File “/home/ht/.local/share/virtualenvs/zanhu-IHRAcKWB/lib/python3.6/site-packages/environ/environ.py”, line 273, in get_value
value = self.ENVIRON[var]
File “/home/ht/.local/share/virtualenvs/zanhu-IHRAcKWB/lib/python3.6/os.py”, line 669, in getitem
raise KeyError(key) from None
KeyError: ‘CELERY_BROKER_URL’
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “manage.py”, line 31, in
execute_from_command_line(sys.argv)
File “/home/ht/.local/share/virtualenvs/zanhu-IHRAcKWB/lib/python3.6/site-packages/django/core/management/init.py”, line 381, in execute_from_command_line
utility.execute()
File “/home/ht/.local/share/virtualenvs/zanhu-IHRAcKWB/lib/python3.6/site-packages/django/core/management/init.py”, line 375, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File “/home/ht/.local/share/virtualenvs/zanhu-IHRAcKWB/lib/python3.6/site-packages/django/core/management/init.py”, line 224, in fetch_command
klass = load_command_class(app_name, subcommand)
File “/home/ht/.local/share/virtualenvs/zanhu-IHRAcKWB/lib/python3.6/site-packages/django/core/management/init.py”, line 36, in load_command_class
module = import_module(’%s.management.commands.%s’ % (app_name, name))
File “/home/ht/.local/share/virtualenvs/zanhu-IHRAcKWB/lib/python3.6/importlib/init.py”, line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File “
但如果我用pycharm 用下面的方式直接跑貌似就正常,这是为什么