add creating initial datas

This commit is contained in:
Cayo Puigdefabregas 2023-11-03 12:01:12 +01:00
parent cc0c2033f9
commit 40617b7cfe
1 changed files with 3 additions and 0 deletions

View File

@ -17,6 +17,9 @@ main() {
# move the migrate thing in docker entrypoint # move the migrate thing in docker entrypoint
# inspired by https://medium.com/analytics-vidhya/django-with-docker-and-docker-compose-python-part-2-8415976470cc # inspired by https://medium.com/analytics-vidhya/django-with-docker-and-docker-compose-python-part-2-8415976470cc
./manage.py migrate ./manage.py migrate
printf "creating initial Datas\n" >&2
python initial_datas.py
#./manage.py collectstatic #./manage.py collectstatic
printf "creating superuser \n user: ${DJANGO_SUPERUSER_USERNAME}\n password: ${DJANGO_SUPERUSER_PASSWORD}\n email: ${DJANGO_SUPERUSER_EMAIL}\n" >&2 printf "creating superuser \n user: ${DJANGO_SUPERUSER_USERNAME}\n password: ${DJANGO_SUPERUSER_PASSWORD}\n email: ${DJANGO_SUPERUSER_EMAIL}\n" >&2