Look into whitenoise if you want to serve it from ec2 / Django-storages if from s3+ CloudFront directly.
If you're using docker you might need to mount the staticfiles path on the container. On Thu, 29 Aug 2024, 22:05 Kiran Barai, <kiranbarai.myewa...@gmail.com> wrote: > Hello everyone, > > > 1. I’m having trouble with my Django project after deploying it on an > EC2 instance. The issue is that my static files (CSS, JavaScript) are not > loading correctly. > 2. second issues in URL: - > issue with a Django project where the URL generated using the {% url > %} template tag is not rendering correctly. Instead of getting the proper > URL, the rendered URL appears to be incorrectly encoded and includes the > literal template tag. When clicking a button or link that is > supposed to navigate to a specific view, the URL appears as follows: > https://mydomain/%7B%%20url%20'save-file-history'%20%%7D > > > Thank you > > > -- > 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 view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/782477cd-de0a-49c4-b249-a4872a76caban%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/782477cd-de0a-49c4-b249-a4872a76caban%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAPPZg2w78%2BJG82nLwyz%3DPaz0%3DJYEdp%3DCroGW7%3Dv%3D0wjWiv1_mA%40mail.gmail.com.