from django db import models class Person models Model name models Cha

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
from django.db import models
class Person(models.Model):
name = models.CharField(max_length=50)
l_name = models.CharField(max_length=50)
date = models.DateField()
bio = models.CharField(max_length=255)
email = models.EmailField(max_length=50)
jabber = models.CharField(max_length=50)
skype = models.CharField(max_length=50)
other = models.CharField(max_length=255)
class HttpRequest(models.Model):
date_time = models.DateTimeField(auto_now=True, auto_now_add=True)
request_method = models.CharField(max_length=10)
path = models.CharField(max_length=100)
server_protocol = models.CharField(max_length=10)
status_code = models.IntegerField(max_length=3)
content_len = models.IntegerField(max_length=100)
class Meta:
ordering = ['date_time']