title: Django python script with command line arguments
body: <p>I am attempting to run a script through the django shell that uses command line arguments. My script looks like the following:</p>
  
  <pre><code>#...
  import sys
  arguments = sys.argv
  # do stuff based on the arguments
  </code></pre>
  
  <p>so I tried to run the following in the command line:</p>
  
  <pre><code>python manage.py shell &gt;&gt; my_script.py arg1 arg2 ...
  </code></pre>
  
  <p>which gave me <code>CommandError: Command doesn't accept any arguments</code></p>
  
  <p>I would like to avoid using standard input, although I understand that it is a fall back plan. So <strong>is there a way to have a python script that requires command line arguments to run through the django shell?</strong></p>