Why is
Not Found: /static/css/main.css
showing up?

AnonymousTRIAL

a year ago

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

0 Replies

a year ago

are you running collect static?


a year ago

n/a


AnonymousTRIAL

a year ago

No, how do I do that?


a year ago

in your start command


AnonymousTRIAL

a year 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


a year ago

how are you defining your start command currently?


AnonymousTRIAL

a year 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


a year ago

you are defining your start command in your Procfile


AnonymousTRIAL

a year ago

Thanks for the answer!

Do you know what I should put in the Procfile to make my static files be found?


a year ago

are you using whitenoise?


AnonymousTRIAL

a year ago

No


a year ago

please go ahead and do that


AnonymousTRIAL

a year ago

All right, thank you very much for your help!


AnonymousTRIAL

a year ago

I will try do that


Why is `Not Found: /static/css/main.css` showing up? - Railway Help Station