berinhard / model_mommy

No longer maintained, please migrate to model_bakery
http://model-bakery.readthedocs.org/
Other
903 stars 141 forks source link

Cleaner way to handle files and images #132

Closed philippeluickx closed 10 years ago

philippeluickx commented 11 years ago

Hey!

First of all, thanks for a great package! I am using model mommy for generating models that include images and files, which is handled quite graciously. However, I did notice that this polutes the projects media folder, which is minor but annoying.

I guess there are multiple solutions to this:

What is your opinion about this?

vkurup commented 11 years ago

Another option: http://www.caktusgroup.com/blog/2013/06/26/media-root-and-django-tests/

vandersonmota commented 11 years ago

I think @vkurup 's approach is good, since it is not really mommy's responsability to cleanup the folder. If you're using another package, or even doing it yourself, you'll run into this problem as well.

philippeluickx commented 10 years ago

Yup, looks good to me! Useful in a very generic way, thanks for the info @vkurup ! @vandersonmota you can close this issue then, but might be a good one for poiting to in the docs?

vandersonmota commented 10 years ago

@philippeluickx maybe it is. But we need to refactor mommy's docs. README is getting pretty big.