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
Project ID:
ea29d611-6cfa-40d0-b5b7-c8e81af2bc83
ea29d611-6cfa-40d0-b5b7-c8e81af2bc83
here's a railway provided django template for you to reference
https://github.com/railwayapp-templates/django
@Brody what about a django api?
#🛂|readme #5
sorry but i am deploying a django api? what should i do
here's a railway provided django template for you to reference
https://github.com/railwayapp-templates/django
add your api routes however you like
kk also my manage.py does not open, may you see my github directory?
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.
your folder structure is wrong
so, once again, please reference this django template
https://github.com/railwayapp-templates/django
yes but there is static files and i dont have them since it is an api
omit the parts you don't need, just use it as a guide for how your app should be setup and structured
ok thank you
3 minutes after starting my app, it crashed. can you identify the error (using railway.json simply results in "no start command found"
^
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?
if you correctly structure your app, stuff will break?
well it is my first time deploying a django api and my django structure is way different than others.
then once again, please reference the template i linked to see how a django app should be structured
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
how many total apps do you have in this project
5
are they all django apps
yes
do you need to run them all
yes
well you can only easily run one app per service
so how can I run the five of them
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
kk thank you