Skip to content
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

安装说明报错问题 #1

Closed
anonymity3712 opened this issue Apr 22, 2020 · 2 comments
Closed

安装说明报错问题 #1

anonymity3712 opened this issue Apr 22, 2020 · 2 comments

Comments

@anonymity3712
Copy link
Contributor

python manage.py migrate
一直报错Traceback (most recent call last):
File "manage.py", line 21, in
main()
File "manage.py", line 17, in main
execute_from_command_line(sys.argv)
File "/usr/local/lib/python3.7/dist-packages/django/core/management/init.py", line 381, in execute_from_command_line
utility.execute()
File "/usr/local/lib/python3.7/dist-packages/django/core/management/init.py", line 325, in execute
settings.INSTALLED_APPS
File "/usr/local/lib/python3.7/dist-packages/django/conf/init.py", line 79, in getattr
self._setup(name)
File "/usr/local/lib/python3.7/dist-packages/django/conf/init.py", line 66, in _setup
self._wrapped = Settings(settings_module)
File "/usr/local/lib/python3.7/dist-packages/django/conf/init.py", line 157, in init
mod = importlib.import_module(self.SETTINGS_MODULE)
File "/usr/lib/python3.7/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1006, in _gcd_import
File "", line 983, in _find_and_load
File "", line 967, in _find_and_load_unlocked
File "", line 677, in _load_unlocked
File "", line 728, in exec_module
File "", line 219, in _call_with_frames_removed
File "/home/vulhub/vulfocus-master/vulfocus-api/vulfocus/settings.py", line 157, in
if os.environ['VUL_IP']:
File "/usr/lib/python3.7/os.py", line 679, in getitem
raise KeyError(key) from None
KeyError: 'VUL_IP'

@xxxxbxxxxx
Copy link
Contributor

需要配置环境变量,

key 为:VUL_IP

value 为Docker 服务器IP, 不能设置为 127.0.0.1

@xxxxbxxxxx
Copy link
Contributor

�或者重新 clone / pull 最新代码安装。

xxxxbxxxxx pushed a commit that referenced this issue May 12, 2020
xxxxbxxxxx pushed a commit that referenced this issue May 21, 2020
xxxxbxxxxx pushed a commit that referenced this issue Jun 19, 2020
xxxxbxxxxx added a commit that referenced this issue Jun 19, 2020
Merge pull request #1 from fofapro/master
xxxxbxxxxx pushed a commit that referenced this issue Jul 10, 2020
xxxxbxxxxx pushed a commit that referenced this issue Jul 13, 2020
xxxxbxxxxx pushed a commit that referenced this issue Jul 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants