Upload Images from Remote Server

58 views
Skip to first unread message

pradam programming

unread,
Nov 21, 2016, 8:10:17 AM11/21/16
to django...@googlegroups.com
hi Guys,
1.I have Created an API which store images into database just giving image path but issue is when i remotely upload image using API i will get the  following error show no such file or Directory eg:
[ {'name':'foo','date':'2016-11-21','organization_name':'buzz','description':'Abhilash','image':'/home/mahiti/Pictures/torrentz.png'}]

error:

no file or directory

2.How can i remotely get images and save it my local system?
3.If the site goes live then same scenario will happen as of 1 ? 

ludovic coues

unread,
Nov 22, 2016, 4:27:08 AM11/22/16
to django...@googlegroups.com
The actual full stacktrace and at least the relevant function in your
code would be nice.
> --
> 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/CAGGVXBOiiVFr7j-fCXm73NzADgjPFieA4A8ggvATK_SNMwcNMQ%40mail.gmail.com.
> For more options, visit https://groups.google.com/d/optout.



--

Cordialement, Coues Ludovic
+336 148 743 42

pradam programming

unread,
Nov 22, 2016, 6:16:07 AM11/22/16
to django...@googlegroups.com
Hi Ludovic,
What is Full stacktrace ..? i tried very solution but i can't able to store image without a form in rest framework..?

On Tue, Nov 22, 2016 at 2:56 PM, ludovic coues <cou...@gmail.com> wrote:
The actual full stacktrace and at least the relevant function in your
code would be nice.

2016-11-21 14:09 GMT+01:00 pradam programming <pradam.pr...@gmail.com>:
> hi Guys,
> 1.I have Created an API which store images into database just giving image
> path but issue is when i remotely upload image using API i will get the
> following error show no such file or Directory eg:
> [
> {'name':'foo','date':'2016-11-21','organization_name':'buzz','description':'Abhilash','image':'/home/mahiti/Pictures/torrentz.png'}]
>
> error:
>
> no file or directory
>
> 2.How can i remotely get images and save it my local system?
> 3.If the site goes live then same scenario will happen as of 1 ?
>
> --
> 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



--

Cordialement, Coues Ludovic
+336 148 743 42

--
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...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.

ludovic coues

unread,
Nov 22, 2016, 2:47:35 PM11/22/16
to django...@googlegroups.com
If you start django by running "python manage.py runserver", you
should have some log message where you have typed the command.
When your program raise an error, like no such file, django should
print a stacktrace in the log. It's a list of all the function that
django called before getting the error. That help a lot when dealing
with error.
>> > 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/CAGGVXBOiiVFr7j-fCXm73NzADgjPFieA4A8ggvATK_SNMwcNMQ%40mail.gmail.com.
>> > For more options, visit https://groups.google.com/d/optout.
>>
>>
>>
>> --
>>
>> Cordialement, Coues Ludovic
>> +336 148 743 42
>>
>> --
>> 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.
> --
> 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/CAGGVXBPbvniWgCeuMP8Jd57e_gyWK%3DQ_hbJSNrp_axEZaucfpw%40mail.gmail.com.

pradam programming

unread,
Nov 23, 2016, 12:51:31 AM11/23/16
to django...@googlegroups.com
hi Coues,
that's helped me alot thank you for your Solution.


>> > 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/CAGGVXBOiiVFr7j-fCXm73NzADgjPFieA4A8ggvATK_SNMwcNMQ%40mail.gmail.com.
>> > For more options, visit https://groups.google.com/d/optout.
>>
>>
>>
>> --
>>
>> Cordialement, Coues Ludovic
>> +336 148 743 42
>>
>> --
>> 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

>> 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/CAEuG%2BTb-3GXvN%3D%3DzK%3DGx0kVQ0%3Dz9YZrN4JQP9_nJv0HebdwUwg%40mail.gmail.com.
>> 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

> 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
>
> For more options, visit https://groups.google.com/d/optout.



--

Cordialement, Coues Ludovic
+336 148 743 42

--
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...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
Reply all
Reply to author
Forward
0 new messages