Opened 10 years ago

Closed 10 years ago

#3386 closed (duplicate)

add PYTHONSTARTUP capability to manage.py shell

Reported by: Jeff Bauer <jbauer@…> Owned by: Adrian Holovaty
Component: Core (Other) Version: master
Severity: Keywords: PYTHONSTARTUP
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

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 (1)

pythonrc.diff (735 bytes) - added by Jeff Bauer <jbauer@…> 10 years ago.

Download all attachments as: .zip

Change History (3)

Changed 10 years ago by Jeff Bauer <jbauer@…>

Attachment: pythonrc.diff added

comment:1 in reply to:  description Changed 10 years ago by Jeff Bauer <jbauer@…>

Needs documentation: unset
Needs tests: unset
Patch needs improvement: unset
<  2. .pystartup is present in the user's home directory
>  2. .pythonrc.py is present in the user's home directory

comment:2 Changed 10 years ago by Michael Radziej <mir@…>

Resolution: duplicate
Status: newclosed

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?

Note: See TracTickets for help on using tickets.
Back to Top