- python3
-
create super admin (
/admin
) with usernameadmin
and passwordpassword
-
⚠️ remove old db and rewrite initial migrations for apirm -rf db.sqlite3 && rm -rf api/migrations/ && python manage.py makemigrations api && python manage.py migrate && echo "from django.contrib.auth.models import User; User.objects.create_superuser('admin', 'admin@example.com', 'password')" | python manage.py shell && python manage.py runserver