First initial commit for test Django website
This commit is contained in:
24
post/migrations/0001_initial.py
Normal file
24
post/migrations/0001_initial.py
Normal file
@ -0,0 +1,24 @@
|
||||
# Generated by Django 5.1 on 2024-08-29 22:45
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
initial = True
|
||||
|
||||
dependencies = [
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='Post',
|
||||
fields=[
|
||||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('title', models.CharField(max_length=75)),
|
||||
('body', models.TextField()),
|
||||
('slug', models.SlugField()),
|
||||
('date', models.DateTimeField(auto_now_add=True)),
|
||||
],
|
||||
),
|
||||
]
|
||||
18
post/migrations/0002_post_banner.py
Normal file
18
post/migrations/0002_post_banner.py
Normal file
@ -0,0 +1,18 @@
|
||||
# Generated by Django 5.1 on 2024-08-29 23:39
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('post', '0001_initial'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='post',
|
||||
name='banner',
|
||||
field=models.ImageField(blank=True, default='fallback.png', upload_to=''),
|
||||
),
|
||||
]
|
||||
0
post/migrations/__init__.py
Normal file
0
post/migrations/__init__.py
Normal file
Reference in New Issue
Block a user