From c139be19589eb470eb97de6d44f16a6176063319 Mon Sep 17 00:00:00 2001 From: Marcio Mazza Date: Mon, 6 Jul 2015 11:26:11 -0300 Subject: [PATCH] Add script to create default admin user (dev) --- scripts/create_admin_user.sh | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 scripts/create_admin_user.sh diff --git a/scripts/create_admin_user.sh b/scripts/create_admin_user.sh new file mode 100644 index 000000000..e7e5c64cc --- /dev/null +++ b/scripts/create_admin_user.sh @@ -0,0 +1,2 @@ +#!/bin/bash +echo "from django.contrib.auth.models import User; User.objects.create_superuser('admin', 'admin@example.com', 'admin')" | python manage.py shell --plain