From e4025301a4cc060237dbf40b25d97a4121802b60 Mon Sep 17 00:00:00 2001 From: Radomir Dopieralski Date: Tue, 12 Nov 2019 14:39:08 +0100 Subject: [PATCH] Make tox -e runserver work faster Compiling translation messages on every run of runserver makes it very slow and inconvenient for development. Editing of the translations is done rarely, and compilemessages can be run manually when it does happen. I'm also adding -v 0 to all the manage commands, to make it output less garbage to the screen, making it a little easier to find actual errors during development. Change-Id: I95db4505c3a9cd5b2ecc3e6ad6a30d438a4447b9 --- tox.ini | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tox.ini b/tox.ini index 5da8e7ed56..29fa7404ff 100644 --- a/tox.ini +++ b/tox.ini @@ -149,9 +149,8 @@ commands = {envpython} {toxinidir}/manage.py {posargs} [testenv:runserver] envdir = {toxworkdir}/venv commands = - {envpython} {toxinidir}/manage.py compilemessages - {envpython} {toxinidir}/manage.py collectstatic -c --noinput - {envpython} {toxinidir}/manage.py runserver {posargs} + {envpython} {toxinidir}/manage.py collectstatic -v 0 -c --noinput + {envpython} {toxinidir}/manage.py runserver -v 0 {posargs} [testenv:bandit] envdir = {toxworkdir}/venv