#6682: Wishlist: have "manage.py shell" execute custom commands on startup ---------------------------------------------+------------------------------ Reporter: o...@iola.dk | Owner: nobody Status: closed | Milestone: Component: django-admin.py | Version: SVN Resolution: wontfix | Keywords: feature shell ipython Stage: Design decision needed | Has_patch: 1 Needs_docs: 1 | Needs_tests: 0 Needs_better_patch: 1 | ---------------------------------------------+------------------------------ Changes (by russellm):
* status: reopened => closed * resolution: => wontfix Comment: This was closed by Jacob, and I don't see any compelling reason to reopen it. Python requires that you import code that you require. It's not "jumping through hoops" or "conflicting with the philosophy of Django" to expect users to write Python code when presented with a a Python prompt. The Principle of Least Surprise says that you should do the least surprising thing - to me, this means that starting a Python shell should provide you with a clean python environment, not one that has been magically populated with some subset of all possible imports. If you don't like this decision, there are at least two workarounds mentioned in this thread. -- Ticket URL: <http://code.djangoproject.com/ticket/6682#comment:10> Django <http://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 post to this group, send email to django-updates@googlegroups.com To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-updates?hl=en -~----------~----~----~----~------~----~------~--~---