feat: added pretty data generation

This commit is contained in:
Андрей Сумин
2025-03-03 14:03:55 +03:00
parent 04b1db4a1b
commit 774c312979
14 changed files with 410 additions and 15 deletions
+14
View File
@@ -0,0 +1,14 @@
#!/bin/sh
python manage.py migrate
if [ $? -ne 0 ]; then
echo "Migration failed"
exit 1
fi
if [ "$DJANGO_CREATE_SUPERUSER" = "True" ]; then
python manage.py createsuperuser --noinput --username "$DJANGO_SUPERUSER_USERNAME" --email "$DJANGO_SUPERUSER_EMAIL" || true
fi
python manage.py init_achievments
python manage.py generate_pretty_data