images in production mode. is pointed to a different path.

8 views
Skip to first unread message

janderson abreu

unread,
Aug 26, 2019, 12:13:45 PM8/26/19
to Django users
Good afternoon, I'm having trouble displaying images in production mode. is pointed to a different path. image src points to -> https://campeonatosdejiujitsu.com/social/file.jpg and https://campeonatosdejiujitsu.com/social/images/file.jpg the images are at: https://campeonatosdejiujitsu.com/static/ file.jpg https://campeonatosdejiujitsu.com/static/file.jpg
follows the gist with detailing and logs:
https://gist.github.com/Jandersolutions/e3af7a1e66ee7b81110d2a869e9ec1c8
Captura de tela_2019-08-26_12-25-12.png
Captura de tela_2019-08-26_12-26-08.png

Aldian Fazrihady

unread,
Aug 26, 2019, 12:33:52 PM8/26/19
to django...@googlegroups.com
On production, static files shouldn't be the burden of django server. Many people are using Nginx to handle static file. This is the guide: https://docs.djangoproject.com/en/2.2/howto/static-files/deployment/

--
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/f7105ee2-6236-44e5-99cc-4c2788a34e16%40googlegroups.com.


--
Regards,

Reply all
Reply to author
Forward
0 new messages