Files
django-girls/init.sh
T
2022-09-09 17:06:06 +00:00

16 lines
440 B
Bash

#! /bin/sh
# User credentials
user=admin
email=admin@example.com
password=pass
file=db/db.sqlite3
#if [ -z "$file" ]; then
# echo "from django.contrib.auth.models import User; User.objects.create_superuser('$user', '$email', '$password')" | python3 manage.py shell
#fi
echo "from django.contrib.auth.models import User; User.objects.create_superuser('$user', '$email', '$password')" | python3 manage.py shell
python3 manage.py migrate