#25680: Feature request: support python manage.py shell -e 'run_some_code_as_django()' -------------------------------------+------------------------------------- Reporter: hakanw | Owner: | nielsvanoch Type: New feature | Status: assigned Component: Core (Management | Version: 1.8 commands) | Severity: Normal | Resolution: Keywords: | Triage Stage: | Unreviewed Has patch: 1 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 0 | UI/UX: 0 -------------------------------------+-------------------------------------
Comment (by charettes): Replying to [comment:10 adamchainz]: > Indeed it does confiscate. But interestingly {{{python}}} alone doesn't output the prompt: > > > {{{ > $ python <<< 'print(23 * 7)' > 161 > }}} > > So {{{manage.py shell}}} can maybe do something to avoid outputting the prompt in this case - which is still separate to the case of a flag of course. In the long run it might just be easier to add this flag since we might have to also special case `ipython` and `bpython` also and from my understanding the `<<<` trick won't work on Windows. -- Ticket URL: <https://code.djangoproject.com/ticket/25680#comment:11> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscr...@googlegroups.com. To post to this group, send email to django-updates@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/064.647dc453880ab4ff39af7e41470d83bc%40djangoproject.com. For more options, visit https://groups.google.com/d/optout.