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

2 years 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

14 Replies

brody
EMPLOYEE

2 years ago

are you running collect static?


brody
EMPLOYEE

2 years ago

n/a


Anonymous
TRIALOP

2 years ago

No, how do I do that?


brody
EMPLOYEE

2 years ago

in your start command


Anonymous
TRIALOP

2 years 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
EMPLOYEE

2 years ago

how are you defining your start command currently?


Anonymous
TRIALOP

2 years 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


brody
EMPLOYEE

2 years ago

you are defining your start command in your Procfile


Anonymous
TRIALOP

2 years ago

Thanks for the answer!

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


brody
EMPLOYEE

2 years ago

are you using whitenoise?


Anonymous
TRIALOP

2 years ago

No


brody
EMPLOYEE

2 years ago

please go ahead and do that


Anonymous
TRIALOP

2 years ago

All right, thank you very much for your help!


Anonymous
TRIALOP

2 years ago

I will try do that


Loading...