chore(init): added seeding users on startup

This commit is contained in:
ITQ
2026-02-12 22:30:13 +03:00
parent 60874fd975
commit 9c45d9883e
+2
View File
@@ -6,6 +6,8 @@ if [ $? -ne 0 ]; then
exit 1 exit 1
fi fi
python manage.py seed_users
if [ "$DJANGO_CREATE_SUPERUSER" = "True" ]; then if [ "$DJANGO_CREATE_SUPERUSER" = "True" ]; then
python manage.py createsuperuser --noinput --username "$DJANGO_SUPERUSER_USERNAME" --email "$DJANGO_SUPERUSER_EMAIL" || true python manage.py createsuperuser --noinput --username "$DJANGO_SUPERUSER_USERNAME" --email "$DJANGO_SUPERUSER_EMAIL" || true
fi fi