Re: Exiting from a management command with a given exit status

2014-01-24 Thread James Bennett
On Fri, Jan 24, 2014 at 2:10 AM, Johannes Schneider < johannes.schnei...@galileo-press.de> wrote: > thnx, > I thought there might be a more django-like way. Using standard features of Python and its built-in libraries *is* the "Django-like way". -- You received this message because you are

Re: Exiting from a management command with a given exit status

2014-01-24 Thread Johannes Schneider
thnx, I thought there might be a more django-like way. On 23.01.2014 15:48, Erik Cederstrand wrote: import sys sys.exit(123) -- Johannes Schneider Webentwicklung johannes.schnei...@galileo-press.de Tel.: +49.228.42150.xxx Galileo Press GmbH Rheinwerkallee 4 - 53227 Bonn -

Re: Exiting from a management command with a given exit status

2014-01-23 Thread Erik Cederstrand
Den 23/01/2014 kl. 15.06 skrev Johannes Schneider : > Hi List, > see the question in the subject. I want to return from a management command > with a given exit code. How can this be done? class Command(BaseCommand): def handle(self, *args, **options):

Exiting from a management command with a given exit status

2014-01-23 Thread Johannes Schneider
Hi List, see the question in the subject. I want to return from a management command with a given exit code. How can this be done? bg, Johannes -- Johannes Schneider Webentwicklung johannes.schnei...@galileo-press.de Tel.: +49.228.42150.xxx Galileo Press GmbH Rheinwerkallee 4 - 53227 Bonn -