Switch to Django with visitor tracking and server info footnote
All checks were successful
ci/woodpecker/manual/woodpecker Pipeline was successful

This commit is contained in:
2026-03-29 21:31:35 +03:00
parent 7f4b543f3d
commit 114fabdbdb
17 changed files with 341 additions and 25 deletions

12
core/models.py Normal file
View File

@@ -0,0 +1,12 @@
from django.db import models
class Visit(models.Model):
ip = models.GenericIPAddressField()
timestamp = models.DateTimeField(auto_now_add=True)
class Meta:
ordering = ['-timestamp']
def __str__(self):
return f"{self.ip} @ {self.timestamp}"