debug testing
This commit is contained in:
@@ -273,6 +273,8 @@ class FakeAdminLoginView(View):
|
|||||||
else:
|
else:
|
||||||
ip = request.META.get("REMOTE_ADDR")
|
ip = request.META.get("REMOTE_ADDR")
|
||||||
print(ip)
|
print(ip)
|
||||||
|
print(len(ip))
|
||||||
|
print(type(ip))
|
||||||
hacker, created = SecurityBreachAttemptModel.objects.get_or_create(ip=ip)
|
hacker, created = SecurityBreachAttemptModel.objects.get_or_create(ip=ip)
|
||||||
return render(request, 'admin/fake_login.html', self.get_context(request))
|
return render(request, 'admin/fake_login.html', self.get_context(request))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user