title: Executing a Django Shell Command from the Command Line
body: <p>I would like to execute a command via Django's manage.py shell function solely from the command line </p>
  
  <p>e.g.</p>
  
  <pre><code>manage.py shell -c "from myapp import models; print models.MyModel.some_calculation()"
  </code></pre>
  
  <p>the came way you might use the -c option with the normal Python interpreter</p>
  
  <p>e.g.</p>
  
  <pre><code>python -c "print 'hello world'"
  </code></pre>
  
  <p>However, I don't see an equivalent -c option for <code>manage.py shell</code>. Is there a way to do this?</p>