AF
Traceback (most recent call last):
File "/home/f0219564/venv/lib64/python3.6/site-packages/django/core/handlers/exception.py", line 34, in inner
response = get_response(request)
File "/home/f0219564/venv/lib64/python3.6/site-packages/django/core/handlers/base.py", line 115, in _get_response
response = self.process_exception_by_middleware(e, request)
File "/home/f0219564/venv/lib64/python3.6/site-packages/django/core/handlers/base.py", line 113, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/home/f0219564/venv/lib64/python3.6/site-packages/django/views/generic/base.py", line 71, in view
return self.dispatch(request, *args, **kwargs)
File "/home/f0219564/venv/lib64/python3.6/site-packages/django/views/generic/base.py", line 97, in dispatch
return handler(request, *args, **kwargs)
File "/home/f0219564/venv/lib64/python3.6/site-packages/django/views/generic/list.py", line 157, in get
context = self.get_context_data()
File "/home/f0219564/domains/shkafkupebel.ru/skb/core/views.py", line 36, in get_context_data
context['randphobj'] = random.sample(photoobjects, k = 4)
File "/opt/rh/rh-python36/root/usr/lib64/python3.6/random.py", line 317, in sample
raise ValueError("Sample larger than population or is negative")
ValueError: Sample larger than population or is negative
[11/Oct/2019 12:33:32] "GET / HTTP/1.1" 500 87597
Invalid HTTP_HOST header: 'vsamodelkah.ru'. You may need to add 'vsamodelkah.ru' to ALLOWED_HOSTS.
Bad Request: /
[11/Oct/2019 12:33:46] "GET / HTTP/1.1" 400 64158
Invalid HTTP_HOST header: 'mail.ilshatzakirov.ru'. You may need to add 'mail.ilshatzakirov.ru' to ALLOWED_HOSTS.
Bad Request: /
[11/Oct/2019 12:34:02] "GET / HTTP/1.1" 400 64262
Invalid HTTP_HOST header: 'kafeberkut.ru'. You may need to add 'kafeberkut.ru' to ALLOWED_HOSTS.
Bad Request: /
[11/Oct/2019 12:34:53] "GET / HTTP/1.1" 400 64143
Invalid HTTP_HOST header: 'mail.i4web.ru'. You may need to add 'mail.i4web.ru' to ALLOWED_HOSTS.
Bad Request: /
[11/Oct/2019 12:34:54] "GET / HTTP/1.1" 400 64142
Invalid HTTP_HOST header: 'givadushoi-aleshina.ru'. You may need to add 'givadushoi-aleshina.ru' to ALLOWED_HOSTS.
Invalid HTTP_HOST header: 'mail.xn--80aaah2aojzibggje.xn--p1ai'. You may need to add 'mail.xn--80aaah2aojzibggje.xn--p1ai' to ALLOWED_HOSTS.
Bad Request: /
[11/Oct/2019 12:34:58] "GET / HTTP/1.1" 400 64472
Bad Request: /
[11/Oct/2019 12:34:58] "GET / HTTP/1.1" 400 64277
Invalid HTTP_HOST header: 'rgkh.ru'. You may need to add 'rgkh.ru' to ALLOWED_HOSTS.
Bad Request: /
[11/Oct/2019 12:35:13] "GET / HTTP/1.1" 400 64051