From 032297eac7418363b86b42960c787db9034bc464 Mon Sep 17 00:00:00 2001 From: Matias Vallejos Date: Mon, 29 Jan 2024 19:24:53 -0300 Subject: [PATCH] Add admin user and solve email format --- app/build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/build.sh b/app/build.sh index 63666b2..16badcf 100644 --- a/app/build.sh +++ b/app/build.sh @@ -6,7 +6,7 @@ pip install -r requirements.txt # How to automate createsuperuser on django # https://stackoverflow.com/questions/6244382/how-to-automate-createsuperuser-on-django/59467533#59467533 -python manage.py shell -c "from django.contrib.auth import get_user_model; get_user_model().objects.create_user('admin', 'todoapp19573')" +python manage.py shell -c "from django.contrib.auth import get_user_model; get_user_model().objects.create_user('admin@todo.com', 'todoapp19573')" python manage.py collectstatic --no-input python manage.py migrate