python: can't open file 'manage.py'.Django api failed deployment

my django deployment in railway was successful, but i had many of these errors:python: can't open file 'manage.py': [Errno 2] No such file or directory . These are resulting in 503 errors
32 Replies
Percy
Percy•2y ago
Project ID: ea29d611-6cfa-40d0-b5b7-c8e81af2bc83
rayanthecoder
rayanthecoderOP•2y ago
ea29d611-6cfa-40d0-b5b7-c8e81af2bc83
Brody
Brody•2y ago
here's a railway provided django template for you to reference https://github.com/railwayapp-templates/django
rayanthecoder
rayanthecoderOP•2y ago
@Brody what about a django api?
Brody
Brody•2y ago
#🛂|readme #5
rayanthecoder
rayanthecoderOP•2y ago
sorry but i am deploying a django api? what should i do
Brody
Brody•2y ago
here's a railway provided django template for you to reference https://github.com/railwayapp-templates/django add your api routes however you like
rayanthecoder
rayanthecoderOP•2y ago
kk also my manage.py does not open, may you see my github directory?
rayanthecoder
rayanthecoderOP•2y ago
GitHub
GitHub - AH07pro1/project_dium: This is the Dium's repository
This is the Dium's repository. Contribute to AH07pro1/project_dium development by creating an account on GitHub.
Brody
Brody•2y ago
your folder structure is wrong so, once again, please reference this django template https://github.com/railwayapp-templates/django
rayanthecoder
rayanthecoderOP•2y ago
yes but there is static files and i dont have them since it is an api
Brody
Brody•2y ago
omit the parts you don't need, just use it as a guide for how your app should be setup and structured
rayanthecoder
rayanthecoderOP•2y ago
ok thank you
rayanthecoder
rayanthecoderOP•2y ago
3 minutes after starting my app, it crashed. can you identify the error (using railway.json simply results in "no start command found"
Brody
Brody•2y ago
^
rayanthecoder
rayanthecoderOP•2y ago
i cant change my project's structure like that else everything will break. i've placed requirements.txt in project_dium> and my settings.py is placed in project_dium>backend>main_api. can you check my github and tell me what to do?
Brody
Brody•2y ago
if you correctly structure your app, stuff will break?
rayanthecoder
rayanthecoderOP•2y ago
well it is my first time deploying a django api and my django structure is way different than others.
Brody
Brody•2y ago
then once again, please reference the template i linked to see how a django app should be structured
rayanthecoder
rayanthecoderOP•2y ago
but my problem is that i cant take reference from this one since mine is different. i have my root directory: project_dium . then backend (where manage.py is) and main_api were settings.py is
Brody
Brody•2y ago
how many total apps do you have in this project
rayanthecoder
rayanthecoderOP•2y ago
5
Brody
Brody•2y ago
are they all django apps
rayanthecoder
rayanthecoderOP•2y ago
yes
Brody
Brody•2y ago
do you need to run them all
rayanthecoder
rayanthecoderOP•2y ago
yes
Brody
Brody•2y ago
well you can only easily run one app per service
rayanthecoder
rayanthecoderOP•2y ago
so how can I run the five of them
Brody
Brody•2y ago
your 5 django apps would need to be separated out into their own root folders, then you create 5 different services and set the root directory appropriately for each service a monorepo is what its called
rayanthecoder
rayanthecoderOP•2y ago
kk thank you
Want results from more Discord servers?
Add your server