On Mon, Sep 8, 2008 at 11:02 PM, chiggsy <[EMAIL PROTECTED]> wrote: > > Hi all, > > I have some questions about the shell I get from manage.py shell: > > When i run that command, I get IPython, which is good, but when i > check my namespace it is empty. Is this supposed to happen? Is this > command not supposed to load django, and my settings etc when i run > it? All it seems to do is add the path of my project to sys.path, > which seems to be the only thing different from ipython... >
It also adds your project's settings module to os.environ['DJANGO_SETTINGS_MODULE']. That makes your settings available to Django without you having to set that environment variable yourself. It doesn't auto-import anything, you still need to import the bits of django and your app that you want to work with in the shell. Karen --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---

