Discussion:
Upload Image Field? ASAP PLS
Richard Vo
2018-11-17 22:30:59 UTC
Permalink
Need to upload an image, manipulate the image through Python Pillow, then
display it.

Whatever additional information I need to provide, please let me know.
--
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+***@googlegroups.com.
To post to this group, send email to django-***@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/42fd7a1a-df2f-4ded-807e-413587beaefc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Shashank Singh
2018-11-18 02:33:34 UTC
Permalink
Why not doing it? Where are you stuck?
Post by Richard Vo
Need to upload an image, manipulate the image through Python Pillow, then
display it.
Whatever additional information I need to provide, please let me know.
--
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
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/42fd7a1a-df2f-4ded-807e-413587beaefc%40googlegroups.com
<https://groups.google.com/d/msgid/django-users/42fd7a1a-df2f-4ded-807e-413587beaefc%40googlegroups.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
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+***@googlegroups.com.
To post to this group, send email to django-***@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/CAD-d1sZiOfx-pKxvQO_CkmTT_PhsVH3EBuZ3usJL_j4K7S1Adw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Yavin Aalto Arba
2018-11-18 08:54:39 UTC
Permalink
Assuming this is just a general question about the subject:

Django Models has an imagefield option:
https://docs.djangoproject.com/en/2.1/ref/models/fields/#django.db.models.ImageField

The image has a .url attribute which you can use for displaying (or you can
use the % static % method). cf. "For example, if your ImageField
<https://docs.djangoproject.com/en/2.1/ref/models/fields/#django.db.models.ImageField>
is
called mug_shot, you can get the absolute path to your image in a template
with {{ object.mug_shot.url}}."

These attributes shouldn't change in the event that the server manipulates
the image.

the .name attribute will give you the full on-disk path, which you can use
for whichever manipulations you need.
Post by Shashank Singh
Why not doing it? Where are you stuck?
Post by Richard Vo
Need to upload an image, manipulate the image through Python Pillow, then
display it.
Whatever additional information I need to provide, please let me know.
--
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
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/42fd7a1a-df2f-4ded-807e-413587beaefc%40googlegroups.com
<https://groups.google.com/d/msgid/django-users/42fd7a1a-df2f-4ded-807e-413587beaefc%40googlegroups.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
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
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/CAD-d1sZiOfx-pKxvQO_CkmTT_PhsVH3EBuZ3usJL_j4K7S1Adw%40mail.gmail.com
<https://groups.google.com/d/msgid/django-users/CAD-d1sZiOfx-pKxvQO_CkmTT_PhsVH3EBuZ3usJL_j4K7S1Adw%40mail.gmail.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
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+***@googlegroups.com.
To post to this group, send email to django-***@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/CA%2B%2Be-ZXhsqPH9Umzk6CgLF4JD559-TkgFU5vnHN0Tc3PfRnmiA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Continue reading on narkive:
Search results for 'Upload Image Field? ASAP PLS' (Questions and Answers)
6
replies
i need a legitimate home based job?
started 2009-04-30 17:57:38 UTC
careers & employment
Loading...