On Mar 28, 3:35 am, Rolando Espinoza La Fuente <[email protected]>
wrote:
> On Fri, Mar 26, 2010 at 7:39 PM, Bjunix <[email protected]> wrote:
> > django-extensions[1] brings the shell_plus command which auto-imports
> > all models in installed apps. You can use this or have a look at it's
> > source.
>
> Yes. shell_plus is quite handy.
>
> $ bin/manage.py shell_plus
> [...]
> From 'api' autoload: RequestLog
> From 'lostiempos' autoload: Section, Subsection, Ad, HtmlArchive,
> SearchHistory, SearchHistoryCount
> From 'south' autoload: MigrationHistory
>
> Imports all your models by default. Also with iPython you can write
> "from" then press [Up]
> and will show you the entries starting with "from" in the history.
>

I wrote a similar app called django-bshell which does the same, but
uses bpython as the shell.

You can find this on pypi, and it adds a 'bshell' manage command.

Matt.

-- 
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.

Reply via email to