Created
May 28, 2014 11:31
-
-
Save runekaagaard/aec4e53de4097f46f797 to your computer and use it in GitHub Desktop.
manage.py Only print statements
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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