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)
Change History (2)
by , 14 years ago
Attachment: | fix-PYTHONSTARTUP-support-in-manage.py-shell.diff added |
---|
comment:1 by , 14 years ago
Resolution: | → duplicate |
---|---|
Status: | new → closed |
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.
Fix PYTHONSTARTUP support in manage.py shell