Opened 18 years ago

Closed 18 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: dev
Severity: Keywords: PYTHONSTARTUP
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

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@…> 18 years ago.

Download all attachments as: .zip

Change History (3)

by Jeff Bauer <jbauer@…>, 18 years ago

Attachment: pythonrc.diff added

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

<  2. .pystartup is present in the user's home directory
>  2. .pythonrc.py is present in the user's home directory

comment:2 by Michael Radziej <mir@…>, 18 years ago

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