Django manage.py runningerver verbosity explanation

Is there a way to make the runerver command completely silent or just display errors like 404 or 500? the verbosity option does not affect it ...

+6
django
source share
2 answers

Now you can set verbosity using the verbosity flag:

 ./manage.py runserver --verbosity 0 

Documentation

+7
source share

It is not possible to make the command less verbose with options. However, you can transfer output where you do not need to worry about it. On Linux / OS X / * nix, you can pass the output to / dev / null using the following:

 $ ./manage.py runserver > /dev/null 

The equivalent on windows would be something like this:

 python manage.py runserver > NUL 

One final note: if you are trying to suppress the conclusion as a matter of preference in your development environment, this is awesome! This should work for you. If you want to do this for almost any other reason, this is probably a sign that you are using the dev server for something you shouldn't. "./manage.py runningerver" should never be used for anything other than local development.

+6
source share

All Articles