add media backend
This commit is contained in:
parent
696717d138
commit
f257da3567
13 changed files with 133 additions and 2 deletions
23
app/media/migrations/0001_initial.py
Normal file
23
app/media/migrations/0001_initial.py
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
# Generated by Django 4.0.4 on 2022-04-22 17:11
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
initial = True
|
||||
|
||||
dependencies = [
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='Image',
|
||||
fields=[
|
||||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('created', models.DateTimeField(auto_now_add=True)),
|
||||
('modified', models.DateTimeField(auto_now=True)),
|
||||
('file', models.ImageField(blank=True, null=True, upload_to='image')),
|
||||
],
|
||||
),
|
||||
]
|
||||
0
app/media/migrations/__init__.py
Normal file
0
app/media/migrations/__init__.py
Normal file
Loading…
Add table
Add a link
Reference in a new issue