Thursday, September 22, 2016

How to save images present in Django application directory to models

I am making a Django application that will do some sort of image manipulation. As an intermediate step, I am generating new images in the Django application directory. Now I want to save these images(.jpg) to a model that contains ImageField. How should I go about saving this image in database? Do we have any Django functionality that can upload images 'programatically' to a database?

--
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 https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/6d24076d-9c95-4b93-9c8a-58171ad932a5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment