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

34 messages · Page 1 of 1 (latest)

quiet falcon
#

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

jade wrenBOT
#

Project ID: ea29d611-6cfa-40d0-b5b7-c8e81af2bc83

quiet falcon
#

ea29d611-6cfa-40d0-b5b7-c8e81af2bc83

limpid chasm
quiet falcon
#

@limpid chasm what about a django api?

limpid chasm
#

#🛂|readme #5

quiet falcon
#

sorry but i am deploying a django api? what should i do

limpid chasm
quiet falcon
#

kk also my manage.py does not open, may you see my github directory?

limpid chasm
quiet falcon
#

yes but there is static files and i dont have them since it is an api

limpid chasm
#

omit the parts you don't need, just use it as a guide for how your app should be setup and structured

quiet falcon
#

ok thank you

quiet falcon
#

3 minutes after starting my app, it crashed. can you identify the error (using railway.json simply results in "no start command found"

quiet falcon
#

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?

limpid chasm
quiet falcon
#

well it is my first time deploying a django api and my django structure is way different than others.

limpid chasm
#

then once again, please reference the template i linked to see how a django app should be structured

quiet falcon
#

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

limpid chasm
#

how many total apps do you have in this project

quiet falcon
#

5

limpid chasm
#

are they all django apps

quiet falcon
#

yes

limpid chasm
#

do you need to run them all

quiet falcon
#

yes

limpid chasm
#

well you can only easily run one app per service

quiet falcon
#

so how can I run the five of them

limpid chasm
#

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