blog working

This commit is contained in:
2020-03-08 15:01:55 -07:00
parent b0af2e6e46
commit aa3683f2da
5 changed files with 57 additions and 1 deletions

View File

@ -0,0 +1,24 @@
# Generated by Django 3.0.3 on 2020-03-08 20:11
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Blog',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('title', models.CharField(max_length=200)),
('pubdate', models.DateTimeField()),
('body', models.TextField(max_length=1000)),
('image', models.ImageField(upload_to='images/')),
],
),
]