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:
parent
b068440330
commit
e4025301a4
5
tox.ini
5
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user