add default storage

This commit is contained in:
godd0t 2023-05-10 13:33:56 +02:00
parent 70a802350a
commit 4d34336f2a
2 changed files with 26 additions and 0 deletions

View File

@ -1,6 +1,9 @@
from .base import * # noqa
STORAGES = {
"default": {
"BACKEND": "django.core.files.storage.FileSystemStorage",
},
"staticfiles": {
"BACKEND": "whitenoise.storage.CompressedManifestStaticFilesStorage",
},

View File

@ -0,0 +1,23 @@
# Generated by Django 4.2.1 on 2023-05-10 11:29
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='TestModel',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('name', models.CharField(max_length=255)),
('description', models.TextField()),
('file', models.FileField(upload_to='test_app/files/')),
],
),
]