Why is `Not Found: /static/css/main.css` showing up?
It's my first time using Railway, I'm trying to upload a landpage with python and django, my site went up, but the styles I made with css don't appear. The error that appears is
Not Found: /static/css/main.css
.
Project ID: 51b96c57-ffa8-40bf-bc86-928500285848/service/93789fcc-c9d9-4812-8161-101975ac20ca?id=fa713076-cff9-45d3-88e8-00db36ed2183
My site is https://bodetech.agr.br/.
Someone please help me13 Replies
Project ID:
N/A
are you running collect static?
No, how do I do that?
in your start command
Can I do it inside Railway or do I have to do it on my machine?
What I did was upload a project to GitHub and then connected it to Railway
how are you defining your start command currently?
Sorry, I don't know how to answer your question.
My repository is public: https://github.com/AbadeDiego/blog
What I did was connect this repository inside Railway,
If you could take a look at the repository it would help a lot
GitHub
GitHub - AbadeDiego/blog
Contribute to AbadeDiego/blog development by creating an account on GitHub.
you are defining your start command in your Procfile
Thanks for the answer!
Do you know what I should put in the Procfile to make my static files be found?
are you using whitenoise?
No
please go ahead and do that https://whitenoise.readthedocs.io/en/stable/django.html
All right, thank you very much for your help!
I will try do that