bizcochito.onion/personalWebpage/webpage/models.py

17 lines
729 B
Python
Raw Normal View History

from django.db import models
from django.utils import timezone
from django.contrib import admin
# Create your models here.
2023-06-21 11:30:08 +00:00
class Booksigner(models.Model):
name = models.CharField(max_length=50)
website = models.CharField(blank=True, max_length=200)
email = models.EmailField(blank=True, )
comment = models.CharField(blank=True, max_length=500)
hosting = models.CharField(max_length=10)
""" def __str__(self) -> str:
return self.name """
""" if(strpos($_SERVER["HTTP_HOST"], ".onion")){ $hosting = "tor!";}
elseif(strpos($_SERVER["HTTP_HOST"], ".i2p")){ $hosting = "i2p!";}
elseif(strpos($_SERVER["HTTP_HOST"], ".fai")){ $hosting = "fai!";}
else{$hosting = "???!";} """