Django

Code

Ticket #3386 (closed: duplicate)

Opened 2 years ago

Last modified 2 years ago

add PYTHONSTARTUP capability to manage.py shell

Reported by: Jeff Bauer <jbauer@rubic.com> Assigned to: adrian
Milestone: Component: Core framework
Version: SVN Keywords: PYTHONSTARTUP
Cc: Triage Stage: Unreviewed
Has patch: 1 Needs documentation: 0
Needs tests: 0 Patch needs improvement: 0

Description

Responding to this thread on Django Users: http://tinyurl.com/2rferr

This patch adds PYTHONSTARTUP capability to manage.py shell when:

  1. PYTHONSTARTUP is defined in the environment
  2. .pystartup is present in the user's home directory

Use of the --plain option disables execution of PYTHONSTARTUP.

Attachments

pythonrc.diff (0.7 kB) - added by Jeff Bauer <jbauer@rubic.com> on 01/28/07 20:49:44.

Change History

01/28/07 20:49:44 changed by Jeff Bauer <jbauer@rubic.com>

  • attachment pythonrc.diff added.

(in reply to: ↑ description ) 01/28/07 21:18:37 changed by Jeff Bauer <jbauer@rubic.com>

  • needs_better_patch changed.
  • needs_tests changed.
  • needs_docs changed.
<  2. .pystartup is present in the user's home directory
>  2. .pythonrc.py is present in the user's home directory

01/28/07 23:37:21 changed by Michael Radziej <mir@noris.de>

  • status changed from new to closed.
  • resolution set to duplicate.

duplicate of #3381.

Your patch looks a bit different, though. If your patch is a improvement to the other one, can you please share your ideas in the other ticket?


Add/Change #3386 (add PYTHONSTARTUP capability to manage.py shell)




Change Properties
Action