How to access project via SSH
franklinson
PROOP

a year ago

Hello,
Anytime I tried to run some commands throuh SSH in Railway CLI, I get error. Here is an exmaple:
`Traceback (most recent call last):
File "/app/manage.py", line 11, in main
from django.core.management import executefromcommand_line
ModuleNotFoundError: No module named 'django'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/app/manage.py", line 22, in
main()
File "/app/manage.py", line 13, in main
raise ImportError(
ImportError: Couldn't import Django. Are you sure it's installed and available on your PYTHONPATH environment variable? Did you forget to activate a virtual environment?`

Is there any work around this?

Solved

8 Replies

franklinson
PROOP

a year ago

c5ca084e-448f-42fa-a39b-4a82c481ae55


franklinson
PROOP

a year ago

Any help here please?


a year ago

thats not a project ID, can you please provide a project ID?


franklinson
PROOP

a year ago

c693458b-37ea-4e1c-a606-1cfe87a9a94e


a year ago

when first ssh'ing in you would need to run . /opt/venv/bin/activate to activate the venv, then you can run your python commands


franklinson
PROOP

a year ago

Great….thanks


a year ago

worked?


a year ago

!s


Status changed to Solved brody 12 months ago


Loading...