Nice to see that this was implemented.
$ cat myscript.py import django print(django.__version__) $ python manage.py shell --command="import myscript" 1.10.dev20160112100000 The --command option lets you pass a command as a string to execute it as Django, like so: django-admin shell --command="import django; print(django.__version__)" https://docs.djangoproject.com/en/dev/ref/django-admin/#django-admin-option---command -- You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/django-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/e585499f-90b7-4a55-ba61-3c59130310b3%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
