#13792 closed Uncategorized (wontfix)
Proposal - Refresh Django shell when code is changed (and saved)
Reported by: | putsin | Owned by: | nobody |
---|---|---|---|
Component: | Core (Management commands) | Version: | 1.2 |
Severity: | Normal | Keywords: | shell |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
What I'm referring to is the style in which the development server refreshes when you save a file in your project. Is it possible to add that functionality to the Django shell?
Change History (3)
comment:1 by , 15 years ago
Resolution: | → wontfix |
---|---|
Status: | new → closed |
comment:3 by , 12 years ago
Easy pickings: | unset |
---|---|
Severity: | → Normal |
Type: | → Uncategorized |
UI/UX: | unset |
A reload can be done with the following options:
- Rerun all the commands from the last reload() (import again and run all the lines of commands)
- Wipe out current data, reimport all the modules.
Option 2 is good enough most of the time.
Note:
See TracTickets
for help on using tickets.
I can't see an obvious way to do this. Reload works for the development server because every request is isolated, so you can restart the entire system between requests. This isn't the case for the shell; the shell is long lived and stateful.
I'm open to suggestions, but absent of a specific course of action, I'm marking this wontfix.