Can I start up terminal, make it open the python interactive shell and run a few python statements w

Posted by user339046 on Stack Overflow See other posts from Stack Overflow or by user339046
Published on 2010-05-12T07:27:08Z Indexed on 2010/05/12 7:34 UTC
Read the original article Hit count: 176

Filed under:
|
|
|

I often do this to prepare for some django debugging:

  • Open up a terminal window in os x (10.6)
  • start the python interpreter
  • run these commands in python:

    from django.core.management import setup_environ
    import settings
    setup_environ(settings)

Is it possible to automate these actions and make a shortcut that I can doubleclick to invoke?

© Stack Overflow or respective owner

Related posts about osx

Related posts about python