diff --git a/docker/local/Dockerfile b/docker/local/Dockerfile index 1fd5e24fa..1160cc9a6 100644 --- a/docker/local/Dockerfile +++ b/docker/local/Dockerfile @@ -63,6 +63,8 @@ WORKDIR /usr/src/paperless/src/ RUN sudo -HEu paperless python3 manage.py collectstatic --clear --no-input +RUN sudo -HEu paperless python3 manage.py compilemessages + VOLUME ["/usr/src/paperless/data", "/usr/src/paperless/media", "/usr/src/paperless/consume", "/usr/src/paperless/export"] ENTRYPOINT ["/sbin/docker-entrypoint.sh"] EXPOSE 8000 diff --git a/docs/administration.rst b/docs/administration.rst index 8885b7322..727d9a9d5 100644 --- a/docs/administration.rst +++ b/docs/administration.rst @@ -148,7 +148,13 @@ After grabbing the new release and unpacking the contents, do the following: $ cd src $ pipenv run python3 manage.py migrate + +5. Update translation files. + .. code:: shell-session + + $ cd src + $ pipenv run python3 manage.py compilemessages Management utilities #################### diff --git a/docs/setup.rst b/docs/setup.rst index 437409194..e51c4c878 100644 --- a/docs/setup.rst +++ b/docs/setup.rst @@ -292,6 +292,9 @@ writing. Windows is not and will never be supported. # This creates the database schema. python3 manage.py migrate + + # This creates the translation files for paperless. + python3 manage.py compilemessages # This creates your first paperless user python3 manage.py createsuperuser