OT: .pystartup

15 views
Skip to first unread message

Baurzhan Ismagulov

unread,
Jan 28, 2007, 3:06:22 PM1/28/07
to django...@googlegroups.com
Hello all,

I'm using a .pystartup file as described at
http://www.python.org/doc/current/tut/node15.html . When I start
"manage.py shell", this file is apparently not read (at least I can't
browse any history entries) and I have to paste it manually. Can I make
manage.py read the file?

Thanks in advance,
--
Baurzhan Ismagulov
http://www.kz-easy.com/

Adrian Holovaty

unread,
Jan 28, 2007, 3:50:43 PM1/28/07
to django...@googlegroups.com
On 1/28/07, Baurzhan Ismagulov <i...@radix50.net> wrote:
> I'm using a .pystartup file as described at
> http://www.python.org/doc/current/tut/node15.html . When I start
> "manage.py shell", this file is apparently not read (at least I can't
> browse any history entries) and I have to paste it manually. Can I make
> manage.py read the file?

Hi Baurzhan,

The "manage.py shell" command doesn't take into account your
.pystartup file, but that would be a nice improvement if it would. If
you could figure out how to make that happen and provide a patch,
we'll integrate it into Django.

Adrian

--
Adrian Holovaty
holovaty.com | djangoproject.com

Baurzhan Ismagulov

unread,
Jan 28, 2007, 4:29:07 PM1/28/07
to django...@googlegroups.com
Hello Adrian,

On Sun, Jan 28, 2007 at 02:50:43PM -0600, Adrian Holovaty wrote:
> The "manage.py shell" command doesn't take into account your
> .pystartup file, but that would be a nice improvement if it would. If
> you could figure out how to make that happen and provide a patch,
> we'll integrate it into Django.

If I had known how to do that, I would have provided the patch in the
first place ;) . Thanks much for the lightning fast answer, now I feel
myself obliged to submit one :) .

With kind regards,

Rubic

unread,
Jan 28, 2007, 9:54:31 PM1/28/07
to Django users
On Jan 28, 2:50 pm, "Adrian Holovaty" <holov...@gmail.com> wrote:
> The "manage.py shell" command doesn't take into account your
> .pystartup file, but that would be a nice improvement if it would. If
> you could figure out how to make that happen and provide a patch,
> we'll integrate it into Django.

Please give this a try and see if it fits the bill:

http://code.djangoproject.com/ticket/3386

--
Jeff Bauer
Rubicon, Inc.

Reply all
Reply to author
Forward
0 new messages