Skip to content

Instantly share code, notes, and snippets.

@runekaagaard
Created May 28, 2014 11:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save runekaagaard/aec4e53de4097f46f797 to your computer and use it in GitHub Desktop.
Save runekaagaard/aec4e53de4097f46f797 to your computer and use it in GitHub Desktop.
manage.py Only print statements
stdbuf -o0 python manage.py runserver 127.0.0.1:8001 2>&1 | stdbuf -o0 sed "s/Quit the server with CONTROL-C\./__THETIME__/g" | stdbuf -o0 grep -v -E '("GET )|("POST )|(0 errors found)|(, using settings )|(Development server is running at)|(Validating models\.\.\.)' | awk '{ gsub("__THETIME__", "SERVER RELOADED AT " strftime("%Y-%m-%d %H:%M:%S" "\n======================================") ,$0); print $0; fflush(); }'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment