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 me
13 Replies
Percy
Percy9mo ago
Project ID: N/A
Brody
Brody9mo ago
are you running collect static?
Diego Abade
Diego AbadeOP9mo ago
No, how do I do that?
Brody
Brody9mo ago
in your start command
Diego Abade
Diego AbadeOP9mo ago
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
Brody
Brody9mo ago
how are you defining your start command currently?
Diego Abade
Diego AbadeOP9mo ago
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.
Brody
Brody9mo ago
you are defining your start command in your Procfile
Diego Abade
Diego AbadeOP9mo ago
Thanks for the answer! Do you know what I should put in the Procfile to make my static files be found?
Brody
Brody9mo ago
are you using whitenoise?
Diego Abade
Diego AbadeOP9mo ago
No
Diego Abade
Diego AbadeOP9mo ago
All right, thank you very much for your help! I will try do that
Want results from more Discord servers?
Add your server