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/
On Mon, Aug 26, 2019 at 11:13 PM janderson abreu <jba1719@gmail.com> wrote:
--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
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 view this discussion on the web visit https://groups.google.com/d/msgid/django-users/f7105ee2-6236-44e5-99cc-4c2788a34e16%40googlegroups.com.
Regards,
Aldian Fazrihady
http://aldianfazrihady.com
http://aldianfazrihady.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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAN7EoAYaRg9E_N66SyiEqK09ZzYQogspo_CG%3DANxSu8TwGg4aQ%40mail.gmail.com.
No comments:
Post a Comment