title: how to start django shell with ipython in qtconsole mode?
body: <p>When i start django shell by typing <code>python manage.py shell</code> 
  the <a href="http://ipython.org/">ipython</a> shell is started. Is it possible to make Django start ipython in <a href="http://ipython.org/ipython-doc/dev/interactive/qtconsole.html">qtconsole</a> mode? (i.e. make it run <code>ipython qtconsole</code>)</p>
  
  <p>Arek</p>
  
  <p>edit:
  so I'm trying what Andrew Wilkinson suggested in his answer - extending my django app with a command which is based on original django shell command. As far as I understand code which starts ipython in original version is this: </p>
  
  <pre><code>from django.core.management.base import NoArgsCommand
  
  class Command(NoArgsCommand):
      requires_model_validation = False
  
      def handle_noargs(self, **options):
          from IPython.frontend.terminal.embed import TerminalInteractiveShell
          shell = TerminalInteractiveShell()
          shell.mainloop()
  </code></pre>
  
  <p>any advice how to change this code to start ipython in qtconsole mode?</p>
  
  <p>second edit:
  what i found and works so far is - start 'ipython qtconsole' from the location where settings.py of my project is (or set the sys.path if starting from different location), and then execute this: </p>
  
  <pre><code>import settings
  import django.core.management
  django.core.management.setup_environ(settings)
  </code></pre>
  
  <p>and now can i import my models, list all instances etc. </p>