Wednesday, December 26, 2012

Re: Python shell doesn't launch

Glad to be able to help.

I've got a few tips too :)

  - Use the excellent Django Extensions app which once you add it to your INSTALLED_APPS tuple, will allow you to run python manage.py shell_plus, which automatically imports all of the models for apps. This is great as it's not often that you want to use shell without importing some models at least.

Also, install iPython, it has great features (e.g. command history) that make it much friendlier than the standard interactive mode.

Cheers,
Ryan

On 26/12/2012, at 2:45 PM, rkturn49@gmail.com wrote:

You know what? I didn't "expect" anything because I HAVEN'T DONE THIS BEFORE!!!! That is why I am doing an introductory tutorial. Thanks, Ramiro - highly intelligent answer. Ryan - you are a professional.  

On Wednesday, December 26, 2012 5:05:10 PM UTC-5, rktu...@gmail.com wrote:
Whenever I run "python manage.py shell," I don't get any errors, but  I get the following:

C:\Python27\Lib\site-packages\django\bin\mysite>python manage.py shell
Python 2.7.3 (default, Apr 10 2012, 23:31:26) [MSC v.1500 32 bit (Intel)] on win
32
Type "help", "copyright", "credits" or "license" for more information.
(InteractiveConsole)

Any ideas on what am I doing or have done wrong?



--
You received this message because you are subscribed to the Google Groups "Django users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/_O0uxSfrIHIJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment