django-avatar
django-avatar copied to clipboard
Request to support third party Storage Backend without making new migration files
I am using amazon s3 as a file storage backend. It requires me to generate a migration file in the systems' python library directory. This is not elegant.
from django.db import migrations, models
import avatar.models
import storages.backends.s3boto
class Migration(migrations.Migration):
dependencies = [
('avatar', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='avatar',
name='avatar',
field=models.ImageField(storage=storages.backends.s3boto.S3BotoStorage(), max_length=1024, upload_to=avatar.models.avatar_path_handler, blank=True),
),
]
This would be really helpful if supported. I'm using Amazon S3.
This is probably related to #167
This is now controlled by settings.AVATAR_STORAGE. If the issue has not been fixed entirely, please reopen.