trying to figure out how to serve user-uploaded files
This commit is contained in:
18
website/upload/migrations/0002_auto_20210209_1803.py
Normal file
18
website/upload/migrations/0002_auto_20210209_1803.py
Normal file
@ -0,0 +1,18 @@
|
||||
# Generated by Django 3.1.6 on 2021-02-09 16:03
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('upload', '0001_initial'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='image',
|
||||
name='image',
|
||||
field=models.FileField(upload_to='../static/%Y/%m/%d/'),
|
||||
),
|
||||
]
|
Reference in New Issue
Block a user