I have a web scraper. It outputs JSON data. I have a Django project that uses this JSON data. These are in two separate repos/directories.
My scraper copies the data file into my Django project. What I want is for that scraper script to then run my custom command, which I would usually activate in the command line with:
python manage.py load_concerts name_of_file.json
How do I make my scraper script (which again, is outside of the Django project) run the commands?
(Googling these search terms is giving me people asking the opposite question, asking how to run a python script from the command line. I want to run a command prompt from a python script.)