Opened 14 years ago

Closed 14 years ago

#15386 closed (duplicate)

Fix PYTHONSTARTUP support in manage.py shell

Reported by: DirkWallenstein Owned by: nobody
Component: Core (Management commands) Version: dev
Severity: Keywords: management shell startup
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

The attached patch will allow to have project specific start-up scripts that,
for example, import all models for easy access.

PYTHONSTARTUP=/path/to/startup.py manage.py shell

Attachments (1)

fix-PYTHONSTARTUP-support-in-manage.py-shell.diff (647 bytes ) - added by DirkWallenstein 14 years ago.
Fix PYTHONSTARTUP support in manage.py shell

Download all attachments as: .zip

Change History (2)

by DirkWallenstein, 14 years ago

Fix PYTHONSTARTUP support in manage.py shell

comment:1 by Julien Phalip, 14 years ago

Resolution: duplicate
Status: newclosed

I'm going to close this as a dupe of #6682. I advise you to look into shell_plus which I think already caters for this: https://github.com/django-extensions/django-extensions/blob/master/django_extensions/management/commands/shell_plus.py

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