This commit is contained in:
deusops
2022-09-09 17:06:06 +00:00
commit 4fac3b4c54
24 changed files with 541 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
#! /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