I get an error when I run the command shown in the image below
python manage.py shell <processing.py 66
error is
usage: manage.py shell [-h] [--version] [-v {0,1,2,3}] [--settings SETTINGS]
[--pythonpath PYTHONPATH] [--traceback] [--no-color]
[--plain] [--no-startup] [-i {ipython,bpython,python}]
[-c COMMAND]
i think its not the right way to pass arguments while using shell. i cannot directly write
python processing.py
because i am using database filtering and so i have to use shell.
this is my processing.py
import os
import sys
from webapp.models import status
dirname = sys.argv[1]
print(os.getcwd())
sta = status.objects.filter(status_id=66)[0]
sta.status = True
sta.save()
print(sta.status)
thanks in advance
