On Mar 28, 3:35 am, Rolando Espinoza La Fuente <dark...@gmail.com> wrote: > On Fri, Mar 26, 2010 at 7:39 PM, Bjunix <bju...@bjunix.de> 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 django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.