In my Django app, I have a script (called players_scrape.py) that is running fine both on the web and as well as in a Bash console. Command that I used there is (assuming I am located in the right directory):
python manage.py runscript players_scrape
However when I try to put it in a schedule task with the following command:
/home/texouze/.local/bin/python /home/texouze/django_projects/mysite/manage.py runscript players_scrape.py
it throws the following error:
CommandError: An error has occurred running scripts. See errors above. When you want to use social login, please see dj4e-samples/github_settings-dist.py Using registration/login.html as the login template No (valid) module for script 'players_scrape.py' found Try running with a higher verbosity level like: -v2 or -v3
I am a bit at a loss, there seems to be many topics referencing scripts and scheduled tasks but none seem to cover my issue, although I am very very new at this...