From 436c47e7f1177777fa0873226528c02faa063202 Mon Sep 17 00:00:00 2001 From: Matias Vallejos Date: Mon, 29 Jan 2024 19:49:27 -0300 Subject: [PATCH] Create super userd --- app/build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/build.sh b/app/build.sh index a39dd91..ab4021e 100644 --- a/app/build.sh +++ b/app/build.sh @@ -5,7 +5,7 @@ set -o errexit pip install -r requirements.txt # How to automate createsuperuser on django -python manage.py shell -c "from django.contrib.auth import get_user_model; User = get_user_model(); User.objects.filter(email='admin@todo.com').delete(); User.objects.create_user(email='matiasvallejosdev@outlook.com', password='19573')" +python manage.py shell -c "from django.contrib.auth import get_user_model; User = get_user_model(); User.objects.filter(email='matiasvallejosdev@outlook.com').delete(); User.objects.create_superuser(email='matiasvallejosdev@outlook.com', password='19573')" python manage.py collectstatic --no-input python manage.py migrate