I have a django project and inside I have an app. Inside this app I created a management folder, inside this one I create a commands folder, and inside the last one I put my script with the init.py file too. My question is how I can run the script, because if I'm in the django project folder (where is manage.py file) and I execute the line:
python manage.py myscript.py
Unknown command: 'myscript.py'
It should be
python manage.py myscript, and if everything else is correct it will work.
Note that management command is not just a python script. It must implement
class Command inside. (Tutorial)