2020-03-07 22:30:21 -08:00
|
|
|
from django.db import models
|
2020-03-08 15:01:55 -07:00
|
|
|
import datetime
|
|
|
|
|
2020-03-07 22:30:21 -08:00
|
|
|
|
|
|
|
# Create your models here.
|
2020-03-08 15:01:55 -07:00
|
|
|
|
|
|
|
class Blog(models.Model):
|
|
|
|
title = models.CharField(max_length=200)
|
|
|
|
pubdate = models.DateTimeField()
|
|
|
|
body = models.TextField(max_length=1000)
|
|
|
|
image = models.ImageField(upload_to='images/')
|