Hey Jeff It is completely alright to try until we find a solution to this. I quote from the Django Documentation: Note that request.FILES <https://docs.djangoproject.com/en/2.1/ref/request-response/#django.http.HttpRequest.FILES> will only contain data if the request method was POST and the <form> that posted the request has the attribute enctype="multipart/form-data". Otherwise, request.FILES will be empty.
Can you ensure that the particular requirements are fulfilled? Also, I would like to ask you to try to upload a file from the Django admin panel and tell me if it is working. If not, can you send me the URL and the uploaded path of the Admin panel uploaded file? Regards Akash Purandare On Sunday, November 18, 2018 at 8:48:04 PM UTC+5:30, Jeff Williams wrote: > > Hi All, > I'm new to django, so sorry if this is a newbie issue. > > I've managed to upload an ImageField....but when I try to display it in my > template using object.pic.url...the URL I'm getting back is missing my > project name from the URL and the pic is not loading. > > Specifically I'm getting > http://127.0.0.1:8000/media/media/56288852934__75FACD12-1711-4655-96D5-716198FE10B7.JPG > back.....and > I need > > http://127.0.0.1:8000/*oldgrub* > /media/media/56288852934__75FACD12-1711-4655-96D5-716198FE10B7.JPG > > back to have it work. > > What am I missing? I've poured over my configs. > Jeff > -- 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+unsubscr...@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/7a1672c8-0f53-41f3-88c0-e3d7a70e7ae3%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.