https://pantsbuild.org/ logo
#general
Title
# general
a

adventurous-tiger-49478

03/06/2023, 7:11 AM
I am using pants to manage django projects. But I have a problem with running commands using manage.py For instance: I have a django project named database_service and i have created a pex binary to run it using pants. However, running ./pants run app/database_service/manage.py -- runserver fails with an error:: "ModuleNotFoundError: No module named 'database_service"
c

clean-city-64472

03/06/2023, 6:40 PM
Can you provide the full output of the command and show the relevant files. It sounds to me like you may need to look at your BUILD files - you need to tell pants that
database_service
folder is required for the pex binary target you made.
6 Views