#3381: [PATCH] make manage.py read PYTHONSTARTUP
----------------------------------------------------+-----------------------
Reporter: Baurzhan Ismagulov <[EMAIL PROTECTED]> | Owner:
jacob
Status: new | Component:
Uncategorized
Version: SVN | Resolution:
Keywords: | Stage:
Accepted
Has_patch: 1 | Needs_docs: 0
Needs_tests: 0 | Needs_better_patch: 0
----------------------------------------------------+-----------------------
Comment (by Jeff Bauer <[EMAIL PROTECTED]>):
It appears I was posting ticket #3386 shortly after this patch appeared.
Two minor details about my patch.
1. I think if the user specifies {{{--plain}}}, the PYTHONSTARTUP should
be ignored. My rationale is that you could have a user with a difficult-
to-debug problem resulting from unanticipated effects of startup code and
it would be easy to advise him/her to try to run the shell with
{{{--plain}}}. Indeed I found one of my ~/.pythonrc.py startup scripts
broke the Django shell. It could be argued this makes the shell behavior
more consistent wrt ''not'' invoking IPython.
2. The second difference is to {{{import user}}} unless {{{--plain}}} is
specified. This will automatically (and somewhat portably) invoke
.pythonrc.py if it's available in the user's home directory.
I'm not lobbying hard for either of my extensions, just presenting my
rationale. I'm happy that any patch is being accepted.
--
Ticket URL: <http://code.djangoproject.com/ticket/3381#comment:4>
Django Code <http://code.djangoproject.com/>
The web framework for perfectionists with deadlines
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" 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-updates?hl=en
-~----------~----~----~----~------~----~------~--~---