add default storage
This commit is contained in:
		@@ -1,6 +1,9 @@
 | 
			
		||||
from .base import *  # noqa
 | 
			
		||||
 | 
			
		||||
STORAGES = {
 | 
			
		||||
    "default": {
 | 
			
		||||
        "BACKEND": "django.core.files.storage.FileSystemStorage",
 | 
			
		||||
    },
 | 
			
		||||
    "staticfiles": {
 | 
			
		||||
        "BACKEND": "whitenoise.storage.CompressedManifestStaticFilesStorage",
 | 
			
		||||
    },
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										23
									
								
								src/test_app/migrations/0001_initial.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										23
									
								
								src/test_app/migrations/0001_initial.py
									
									
									
									
									
										Normal 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/')),
 | 
			
		||||
            ],
 | 
			
		||||
        ),
 | 
			
		||||
    ]
 | 
			
		||||
		Reference in New Issue
	
	Block a user