Traceback (most recent call last):


 "/usr/local/bin/django-admin.py", line 5, in <module>

management.execute_from_command_line()


 "/usr/local/lib/python3.7/dist-packages/django/core/management/__init__.py", line 401, in execute_from_command_line

utility.execute()


 "/usr/local/lib/python3.7/dist-packages/django/core/management/__init__.py", line 395, in execute

self.fetch_command(subcommand).run_from_argv(self.argv)


 "/usr/local/lib/python3.7/dist-packages/django/core/management/commands/test.py", line 23, in run_from_argv

super().run_from_argv(argv)


 "/usr/local/lib/python3.7/dist-packages/django/core/management/base.py", line 328, in run_from_argv

self.execute(*args, **cmd_options)


 "/usr/local/lib/python3.7/dist-packages/django/core/management/base.py", line 369, in execute

output = self.handle(*args, **options)


 "/usr/local/lib/python3.7/dist-packages/django/core/management/commands/test.py", line 53, in handle

failures = test_runner.run_tests(test_labels)


 "/usr/local/lib/python3.7/dist-packages/django/test/runner.py", line 687, in run_tests

self.run_checks()


 "/usr/local/lib/python3.7/dist-packages/django/test/runner.py", line 625, in run_checks

call_command('check', verbosity=self.verbosity)


 "/usr/local/lib/python3.7/dist-packages/django/core/management/__init__.py", line 168, in call_command

return command.execute(*args, **defaults)


 "/usr/local/lib/python3.7/dist-packages/django/core/management/base.py", line 369, in execute

output = self.handle(*args, **options)


 "/usr/local/lib/python3.7/dist-packages/django/core/management/commands/check.py", line 64, in handle

fail_level=getattr(checks, options['fail_level']),


 "/usr/local/lib/python3.7/dist-packages/django/core/management/base.py", line 395, in check

include_deployment_checks=include_deployment_checks,


 "/usr/local/lib/python3.7/dist-packages/django/core/management/base.py", line 382, in _run_checks

return checks.run_checks(**kwargs)


 "/usr/local/lib/python3.7/dist-packages/django/core/checks/registry.py", line 72, in run_checks

new_errors = check(app_configs=app_configs)


 "/usr/local/lib/python3.7/dist-packages/django/core/checks/urls.py", line 13, in check_url_config

return check_resolver(resolver)


 "/usr/local/lib/python3.7/dist-packages/django/core/checks/urls.py", line 23, in check_resolver

return check_method()


 "/usr/local/lib/python3.7/dist-packages/django/urls/resolvers.py", line 407, in check

for pattern in self.url_patterns:


 "/usr/local/lib/python3.7/dist-packages/django/utils/functional.py", line 48, in __get__

res = instance.__dict__[self.name] = self.func(instance)


 "/usr/local/lib/python3.7/dist-packages/django/urls/resolvers.py", line 588, in url_patterns

patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)


 "/usr/local/lib/python3.7/dist-packages/django/utils/functional.py", line 48, in __get__

res = instance.__dict__[self.name] = self.func(instance)


 "/usr/local/lib/python3.7/dist-packages/django/urls/resolvers.py", line 581, in urlconf_module

return import_module(self.urlconf_name)


 "/usr/lib/python3.7/importlib/__init__.py", line 127, in import_module

return _bootstrap._gcd_import(name[level:], package, level)


 "<frozen importlib._bootstrap>", line 1006, in _gcd_import


 "<frozen importlib._bootstrap>", line 983, in _find_and_load


 "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked


 "<frozen importlib._bootstrap>", line 677, in _load_unlocked


 "<frozen importlib._bootstrap_external>", line 728, in exec_module


 "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed


 "/home/lenovo/.local/lib/python3.7/site-packages/defender/test_urls.py", line 4, in <module>

from .urls import urlpatterns as original_urlpatterns


 "/home/lenovo/.local/lib/python3.7/site-packages/defender/urls.py", line 2, in <module>

from .views import block_view, unblock_ip_view, unblock_username_view


 "/home/lenovo/.local/lib/python3.7/site-packages/defender/views.py", line 10, in <module>

from .utils import get_blocked_ips, get_blocked_usernames, unblock_ip, unblock_username


 "/home/lenovo/.local/lib/python3.7/site-packages/defender/utils.py", line 20, in <module>

REDIS_SERVER = get_redis_connection()


 "/home/lenovo/.local/lib/python3.7/site-packages/defender/connection.py", line 24, in get_redis_connection

return mockredis.mock_strict_redis_client()
# pragma: no cover
AttributeError: module 'mockredis' has no attribute 'mock_strict_redis_client'

Traceback (most recent call last):


 "/usr/lib/python2.7/site-packages/pip/basecommand.py", line 215, in main

status = self.run(options, args)


 "/usr/lib/python2.7/site-packages/pip/commands/install.py", line 307, in run

requirement_set.prepare_files(finder)


 "/usr/lib/python2.7/site-packages/pip/req/req_set.py", line 370, in prepare_files

ignore_dependencies=self.ignore_dependencies))


 "/usr/lib/python2.7/site-packages/pip/req/req_set.py", line 458, in _prepare_file

req_to_install, finder)


 "/usr/lib/python2.7/site-packages/pip/req/req_set.py", line 407, in _check_skip_installed

finder.find_requirement(req_to_install, self.upgrade)


 "/usr/lib/python2.7/site-packages/pip/index.py", line 442, in find_requirement

all_candidates = self.find_all_candidates(req.name)


 "/usr/lib/python2.7/site-packages/pip/index.py", line 381, in find_all_candidates

if self._validate_secure_origin(logger, link)


 "/usr/lib/python2.7/site-packages/pip/index.py", line 280, in _validate_secure_origin

addr = ipaddress.ip_address(
AttributeError: 'module' object has no attribute 'ip_address'
