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 sub
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 - German
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):
try:
# Something
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 - G
4 matches
Mail list logo