MEDIA_ROOT and MEDIA_URL both seem fine.....and the URL I'm getting in the
template looks fine.......but URLS.PY is kicking it out.
I changed the security on the directory to full access to everyone.  Any
ideas on how to debug this?  I can't see why the path isn't matching the
pattern.


Page not found (404)
Request Method: GET
Request URL:
http://127.0.0.1:8000/oldgrub/media/56288593216__746F513A-D6F6-446D-949F-D0C09E7C4419_sU3W0z5.JPG

Using the URLconf defined in familyrecipies.urls, Django tried these URL
patterns, in this order:

   1. admin/
   2. oldgrub/ [name='index']
   3. oldgrub/ cookbooks/ [name='cookbooks']
   4. oldgrub/ cookbook/<uuid:pk> [name='cookbook']
   5. oldgrub/ recipe/ [name='recipes']
   6. oldgrub/ recipe/<uuid:pk> [name='recipe']
   7. oldgrub/ family/ [name='family']
   8. oldgrub/ recipe/add/ [name='addrecipe']
   9. oldgrub/ ^static/(?P<path>.*)$
   10. oldgrub/ ^oldgrub/media/(?P<path>.*)$
   11.
   12. accounts/

The current path,
oldgrub/media/56288593216__746F513A-D6F6-446D-949F-D0C09E7C4419_sU3W0z5.JPG,
didn't match any of these.


On Sun, Nov 18, 2018 at 5:24 PM Jason <jjohns98...@gmail.com> wrote:

> Seems like there might be some confusion on what exactly `MEDIA_ROOT`
> means.
>
> you can do
>
> import logging
> logger = logging.getLogger(__name__)
> logger.info(MEDIA_ROOT)
>
> in settings after declaring MEDIA_ROOT
>
> if that path lines up with what you have in the server, then I suspect
> permission issue might be at play as well.
>
> --
> 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/070f631f-d327-47c7-b283-b3bec62b44a6%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/070f631f-d327-47c7-b283-b3bec62b44a6%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+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/CAMgbqCfyA7A8rZL4Phs20X6MFumRBP7XmgaaEF3_heCj%2B4wb_g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to