Commits

Anonymous committed e1a071e

runserver with --nothreading option now only loops if django-admin.py exits with status 1

  • Participants
  • Parent commits 41e4554

Comments (0)

Files changed (1)

     local port=`get_django_setting LOCAL_SERVER_PORT 8000`
 
     while true; do
-        djadmin runserver $ip$port $*
-        if [ $? -ne 0 ]; then
-            echo "Server exited with errors" 1>&2
+        djadmin runserver --nothreading $ip$port $*
+        if [ $? -ne 1 ]; then
             return 1
         fi
         sleep 0.5