diff -Naurp trunk.orig/django/core/management.py trunk-pystartup/django/core/management.py
old
|
new
|
def run_shell(use_plain=False):
|
1194 | 1194 | # we already know 'readline' was imported successfully. |
1195 | 1195 | import rlcompleter |
1196 | 1196 | readline.parse_and_bind("tab:complete") |
1197 | | code.interact() |
| 1197 | console = code.InteractiveConsole() |
| 1198 | filename = os.environ.get("PYTHONSTARTUP") |
| 1199 | if filename and os.path.isfile(filename): |
| 1200 | source = open(filename, "r").read() |
| 1201 | code=compile(source, filename, "exec") |
| 1202 | console.runcode(code) |
| 1203 | console.interact() |
1198 | 1204 | run_shell.args = '[--plain]' |
1199 | 1205 | |
1200 | 1206 | def dbshell(): |