Django is not loading the statics in production
I have the project, it runs fine locally, I can do the deployment, but when I try to enter all the CSS, not even the images appear, absolutely nothing and in the console I get a 404 error for the images
9 Replies
Project ID:
34fb2394-310d-4f6f-a509-c7db6d7435f4
The best way to get your static files for Django to work with railway is to utilize the whitenoise module. You would use the whitenoise module in situations like Heroku and Railway. Vincenzo's modified template here https://github.com/railwayapp-templates/django is a wonderful example of that.
⚠️ experimental feature
34fb2394-310d-4f6f-a509-c7db6d7435f4
Yeah, thanks, already did it, but I needed more things for the app to run with the ccs
This in INSTALLED APPS
"whitenoise.runserver_nostatic",
"django.contrib.staticfiles",
and the other that it is in the github that you send me
cool
Thanks for the help 😄