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?
8 Replies
a year ago
thats not a project ID, can you please provide a project ID?
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
a year ago
worked?
a year ago
!s
Status changed to Solved brody • 12 months ago