You can work in the Python or Django shell without leaving the IDE. Just choose Run Python Console or Run Django Console in the Tools menu.