Thursday, August 29, 2024

Re: Django Static Files Not Loading After EC2 Deployment with Nginx

Did you set up your STATIC_ROOT and do collectstatic?  How to manage static files (e.g. images, JavaScript, CSS) | Django documentation | Django (djangoproject.com)

On Friday 30 August 2024 at 04:06:41 UTC+8 Kiran Barai 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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/c3e59ba2-1575-47eb-b9a8-535cd57c7514n%40googlegroups.com.

No comments:

Post a Comment