Django Media Static Files

30 views
Skip to first unread message

ilda.pedro1993

unread,
May 6, 2020, 6:09:46 AM5/6/20
to Django users
Hello, everyone!
My name is Ilda, i'm getting a page not found when trying to load django media files. 

My django settings file looks like below:

Captura de Tela (148).png








And saw many suggestions to concatenate my app urls with the static one like:

urlpatterns +=static(setting.MEDIA_URL, document_root=MEDIA_ROOT)

But after storing the media files when i try to load a get always a not found page.

Im using Django 3.0.2

Can anybody help me out there?

Jorge Gimeno

unread,
May 6, 2020, 10:39:38 AM5/6/20
to django...@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 view this discussion on the web visit https://groups.google.com/d/msgid/django-users/c08b99df-9423-46b6-8edf-34f01f550bc7%40googlegroups.com.

Are you getting a 404 in production, or while using the development server (manage.py runserver)?

-Jorge

Ilda Pedro

unread,
May 7, 2020, 12:30:42 PM5/7/20
to django...@googlegroups.com
Hello, Jorge!

Thanks Jorge it already worked!

Reply all
Reply to author
Forward
0 new messages