Generate locale messages at dev server startup

By default, Horizon doesn't compile localized messages in tox
environment. It leads to silent fail of language change with 'Success'
message. Proposed patch includes compilation of messages to tox runserver
command

Change-Id: I149a622a81a17e9d951c68829349fc70fbb8ed2a
This commit is contained in:
BubaVV 2019-05-15 12:00:39 +03:00
parent d6f62bc65d
commit e8fd0020ab
1 changed files with 4 additions and 1 deletions

View File

@ -160,7 +160,10 @@ commands = {envpython} {toxinidir}/manage.py {posargs}
[testenv:runserver]
basepython = python3
envdir = {toxworkdir}/venv
commands = {envpython} {toxinidir}/manage.py runserver {posargs}
commands =
{envpython} {toxinidir}/manage.py compilemessages
{envpython} {toxinidir}/manage.py collectstatic -c --noinput
{envpython} {toxinidir}/manage.py runserver {posargs}
[testenv:bandit]
basepython = python3