Monday, January 27, 2014

Dyanmically changing Django Storage?


I am planning to use django-storages. It uses django settings, as

DEFAULT_FILE_STORAGE = 'storages.backends.s3boto.S3BotoStorage'

I read it is bad practice to change django settings during runtime. I am not using Django's FileField.

During run time, based on file size and type,  I want to use a different storage backend. How to do it?

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/0bf2fa7b-d265-49d6-9694-edbb88b624e1%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment