Opened 8 years ago

Closed 8 years ago

#3386 closed (duplicate)

add PYTHONSTARTUP capability to manage.py shell

Reported by: Jeff Bauer <jbauer@…> Owned by: adrian
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@…> 8 years ago.

Download all attachments as: .zip

Change History (3)

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

comment:1 in reply to: ↑ description Changed 8 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 8 years ago by Michael Radziej <mir@…>

  • Resolution set to duplicate
  • Status changed from new to closed

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