favicon added and ruff formatted

This commit is contained in:
acidburnmonkey
2025-08-07 01:52:36 -04:00
parent 2c3a1bd592
commit b984991cce
5 changed files with 5 additions and 5 deletions
-1
View File
@@ -132,4 +132,3 @@ STATIC_ROOT = BASE_DIR / 'staticfiles'
# https://docs.djangoproject.com/en/5.2/ref/settings/#default-auto-field # https://docs.djangoproject.com/en/5.2/ref/settings/#default-auto-field
DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField' DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'
-1
View File
@@ -8,4 +8,3 @@ urlpatterns = [
path('robots.txt/', robots), path('robots.txt/', robots),
path('doxme/', Doxme.as_view()), path('doxme/', Doxme.as_view()),
] ]
+3 -2
View File
@@ -35,12 +35,13 @@ class Doxme(APIView):
ipinfo_url = f'http://api.ipinfo.io/lite/{client_ip}?token={ipinfo_token}' ipinfo_url = f'http://api.ipinfo.io/lite/{client_ip}?token={ipinfo_token}'
ip_info = requests.get(ipinfo_url) ip_info = requests.get(ipinfo_url)
ipis_token = os.getenv('IPIS_TOKEN') ipis_token = os.getenv('IPIS_TOKEN')
ipis_url = f'https://api.ipapi.is?q={client_ip}&key={ipis_token}' ipis_url = f'https://api.ipapi.is?q={client_ip}&key={ipis_token}'
ipis_info = requests.get(ipis_url) ipis_info = requests.get(ipis_url)
if ip_info.ok or ipis_info.ok: if ip_info.ok or ipis_info.ok:
print('ipinfo:', ip_info) print('ipinfo:', ip_info)
return Response({'method': 'get', 'ip_info': ip_info.json(),'ipis':ipis_info.json()}, status=status.HTTP_200_OK) return Response(
{'method': 'get', 'ip_info': ip_info.json(), 'ipis': ipis_info.json()}, status=status.HTTP_200_OK
)
return Response({'message': 'error at ipinfo'}, status=status.HTTP_400_BAD_REQUEST) return Response({'message': 'error at ipinfo'}, status=status.HTTP_400_BAD_REQUEST)
Binary file not shown.

After

Width:  |  Height:  |  Size: 185 KiB

+1
View File
@@ -3,6 +3,7 @@
<html> <html>
<head> <head>
<link rel="icon" type="image/x-icon" href="{% static 'favicon.ico' %}" />
<link rel="stylesheet" href="{% static 'styles.css' %}" /> <link rel="stylesheet" href="{% static 'styles.css' %}" />
<title>Who are you?</title> <title>Who are you?</title>
</head> </head>