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
This commit is contained in:
Radomir Dopieralski 2019-11-12 14:39:08 +01:00
parent b068440330
commit e4025301a4

View File

@ -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