diff --git a/.gitignore b/.gitignore index 2e46773..4fa245e 100644 --- a/.gitignore +++ b/.gitignore @@ -17,7 +17,5 @@ db/data/ibdata1 db/data/ibtmp1 db/data/multi-master.info db/data/mysql_upgrade_info -gawa/media/CACHE gawa/static/CACHE -site/static/CACHE gawa/media/img/links/favicons diff --git a/docker-compose.yml b/docker-compose.yml index 4d9ddc4..4951c21 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -15,9 +15,14 @@ services: main: build: ./docker/main command: bash -c "echo 'setting django up' + && python manage.py makemessages --all + && python manage.py compilemessages && python manage.py collectstatic --noinput - && sleep 3 + && python manage.py check + && echo 'waiting a few seconds for database to start' + && sleep 1 && python manage.py migrate + && python manage.py createcachetable && DJANGO_SUPERUSER_PASSWORD='root' python manage.py createsuperuser\ --username root --noinput --email software@cscherr.de || true && python manage.py runserver 0.0.0.0:80 diff --git a/docker/main/requirements.txt b/docker/main/requirements.txt index bad9a1b..7365c91 100644 --- a/docker/main/requirements.txt +++ b/docker/main/requirements.txt @@ -10,3 +10,4 @@ markdown>=3.4.4 Pygments>=2.16.1 toml>=0.10 beautifulsoup4>=4.12.2 +django-rosetta>=0.9.9 diff --git a/gawa/blog/templates/blog/index.html b/gawa/blog/templates/blog/index.html index d65a321..534e25f 100644 --- a/gawa/blog/templates/blog/index.html +++ b/gawa/blog/templates/blog/index.html @@ -11,7 +11,7 @@
{% translate "Blog" %}